Add Spring nature to module projects.

This allows correct Spring Integration tooling behavior.
XD-890 gradle task for js tests

- Add an Exec task 'jsTest' that runs jasmine spec
  - This doesn't run along with other build tasks as this task requires installation of phantomjs
- Add console-reporter.js from jasmine js library for console reporter
  - Update xd.main.spec to use consolereporter
- Add phantomjs jasmine test runner
  - To open the spec URL and exit phantom on tests pass/fail
- Add SingleNode server launch as dependent task for JS tests
  - This will also make sure to destroy the server process after tests
- Fix PhantomJS spec html to include DOM for tests
XD-896 support --inputType and --outputType module parameters
XD-625: Revert XD-624
Add build dependency to backgroundAdminServer task

- For jsTest task, invoke 'classes' task to build the spring-xd-dirt
  resources before starting backgroundAdminServer
XD-910 Add a processor for client http requests

--Refactored the module to handle a payload.
XD-906 Add aggregate counter monthly resolution

* Create an enum for the package and use this in preference to Joda DateTimeField. We don't need any of the latter's functionality anymore and it can't be used for months or years.
* Add query by month to aggregate counter.
  - Also changed the test to run across more date boundaries (e.g. 2013-2014) and fixed some bugs related to this.
* Add new aggregate options to shell
* Fix potential NPE in aggregate counter
  - When querying beyond with day or month resolution beyond the interval where data is actually recorded, a null value could be returned from the bucket store and cause a NPE. This is now checked and an array of zeroes is used instead.

Jira: https://jira.springsource.org/browse/XD-906
XD-908: Query aggregate count by number of points

Adds an extra query method to the AggregateCounterRepository which takes
a date and the number of points prior to it which are required. If no
date is supplied, it will return the previous n points from the current
time.