improved format and some cleanup
Merge branch 'formatter-functions' into refactor_search
fmt-if directives support groovy expressions.

build works with changes
Merge branch 'refactor_search' of https://github.com/geonetwork/core-geonetwork into refactor_search
Add caching to translations in LangUtils
Performance tuning of template cache to reduce the number of file accesses.
Merge branch 'refactor_search' of https://github.com/geonetwork/core-geonetwork into refactor_search
Fixed formatter tests after merge