Move utility functions to end; move validate() to top
Close #9: Validate `activities`

* Special validator for activities.*.filters

* Support for `pattern`

* Support for `minProperties` and `maxProperties`

* Better support for "type":"number"

* Tests