Added search filter functions.

Added support in the elasticsearch DSL for the
filter functions defined in http://tinyurl.com/qzobc69
Currently wrong filters will panic, the API rejects requests with filters we don't know about. But it is simple to deal with an errors in other parts of the system shouldn't cause cascading failures unnecessarily.