Initial implementation of configurable custom queries. See #123

This adds initial implementation of registered queries. This commit
changes Elasticsearch version to custom build 1.4.1 (see #195)!

Some features still need to be implemented, namely:

- security for individual custom parameters
- configuration and execution of parameters preprocessing
- add unit tests (integration tests are already provided)