Migration to Lucene 4.9.0. Indexing, faceting and searching are working. Errors on CaseInsensitiveFieldComparatorSource.
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
Fix sort accross multiple languages.
Fix test failing due to change on indexing any field. This should not happen as the scale denominator 50000 should be part of the suggestion in the test. This need more investigation to identify why this is not part of the index terms.
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.
Cleaning.
Cleaning.
Merge pull request #606 from fxprunayre/improvements/update-to-lucene-4.9.0

Update to lucene 4.9.0
Delete metadata / Add a parameter to not create backup file. This will allow to avoid failure if 2 records with same UUID are inserted using CSW #609
CSW / GetCapabilities does not report correct URL in multinode mode #610.
Activate scrollspy only if is enabled.
Editor performance improvements.

Create a new scope for the editor form and destroy it when form is reloaded.
Remove form elements to avoid larged detached DOM trees in Chrome.
Field directive : remove events on directive DOM elements added in the link function.
Editor / Add configuration to insert text element in the form #611.
Ignore rebel.xml files.
Merge branch 'stable-develop' into develop
Restore marc4j dependency #601.