Updates to latest versions

* Updated elasticsearch, metrics, jackson, slf4j-log4j12
* Removed clumsy hack, as elasticsearch now supports HEAD on templates
* Fixed compilation errors due to elasticsearch upgrade
Added javadocs, minor refactorings
Using a MetricFilter instead of a regex for percolations

This means you can reuse metric filters you may have already defined for filter operations.