Fix/function score

This PR addresses the following issues with function score queries:

* #783 - Filters can now be applied to all function types including decay functions.
* Function score query was missing the max_boost parameter
* Some slight refactoring (added overloads for specifying document field as a string for decay functions)