correctly merge buildInfo commit

 Reduce database queries of DataManager.buildMetadataInfo for many metadata.

 LuceneSearcher calls DataManager.buildMetadataInfo for each search result. The buildMetadata makes several database queries for

 Tests indicate that it takes the same time for 1 metadata but 14x faster for 20 metadata and 30x faster for 40 metadata.
enable hibernate 2nd level caching

update hibernate version from beta to official 4.3.6.
Update and fix transitive dependencies .
allow tests to use hibernate caching
Languages cached.

Disable sql logging by default
use mockito-all so tests pass with updated versions
Merge remote-tracking branch 'origin/stable-develop' into improvements/update-to-lucene-4.9.0

Conflicts:
	core/src/main/java/org/fao/geonet/kernel/search/LuceneSearcher.java
Cleaning.