LDEV-3293: fix hibernate dtd declarations. Change 'hibernate.org' to 'www.hibernate.org'.
In order for hibernate DTDEntityResolver not to load hibernate-mapping-3.0.dtd from internet (and use local one), namespace declaration of dtd must exactly match the namespace declared in DTDEntityResolver class.
LDEV-3293: Use Spring support for Hibernate 4 instead of 3 (session factory and filters). Use new path for Hibernate DTDs. Make XDoclet generate hbm.xml files with the correct path by providing it a new template.