Reduce database queries of DataManager.buildMetadataInfo for many metadata.

LuceneSearcher calls DataManager.buildMetadataInfo for each search result. The buildMetadata makes several database queries for each call.  This change modifies buildMetadataInfo so that it takes several metadata ids and builds the info for all of the objects with only a few queries.

Tests indicate that it takes the same time for 1 metadata but 14x faster for 20 metadata and 30x faster for 40 metadata.
Merge pull request #603 from jesseeichar/optimize-build-metadata-info

Reduce database queries of DataManager.buildMetadataInfo for many metadata
Fixed compile error
enable hibernate 2nd level caching

update hibernate version from beta to official 4.3.6.
Update and fix transitive dependencies .
Merge branch 'stable-develop' into hibernate-2nd-level-caching

Conflicts:
	core/src/main/java/org/fao/geonet/kernel/AccessManager.java
	core/src/main/java/org/fao/geonet/kernel/DataManager.java
allow tests to use hibernate caching
Languages cached.

Disable sql logging by default
Merge pull request #605 from jesseeichar/hibernate-2nd-level-caching

Hibernate 2nd level caching
Merge remote-tracking branch 'origin/develop' into springmvc

Conflicts:
	web/src/main/webapp/WEB-INF/config-spring-geonetwork.xml