Improve support for custom queries

Load Underscore as dependency to allow for easy extensions
Change custom partial function for the underscore one
Because of that, move the defaultStatistics initialization to the beginning of checkRules
Cange all new js functions (map/reduce) to use the underscore version for browser comp
Add a simple generic script loader