XD-940 Fix Splunk SI Transitive Dependency

For some reason gradle pulled a transitive SI version into
launch classpaths from the SI splunk extension.

Normal gradle builds worked fine; as were the 'Referenced Libraries'
in STS.

Explicitly set the SI version for the splunk extension.
XD-908: Query aggregate count by number of points

Adds extra query methods to the AggregateCounterRepository which takes
to query by the number of points required. One method takes a date and
returns points prior to that, the other takes just the count and 
resolution and returns the points from the current time.
moved build_xd to gradle/
XD-926 Update to SPR 4.0.0.M3

Issues:

- GenericApplicationContext needs refresh()
- GenericApplicationContext doesn't allow getBean after destroy
     the ModuleDeployer tried to unbind the channels after destroying the context
- Problem with @Autowire and @Qualifier when bean in parent context

Resolution:

- Add refresh() to test that needs it
- move module.close() until after unbind
- Under investigation; work around is to not use a qualifier but name the parameter with the bean name

Also:

- Add qualifier to SimpleModule.toString() to enable debugging when the same module is deployed multiple times in tests

Polishing:
- Stop the module before unbinding it
- Destroy the module's context after unbinding it

Previously, the context was stopped and destroyed in module.stop()
which caused the unbind to fail with SPR40.
XD-916:Change file source to support contents or file reference
XD-927: Use ModuleType enum everywhere
XD-958 Fixing path for tmp directory
XD-958 Testing path for tmp directory for trailing /
XD-941: Apply to GemFire
XD-941: Apply CP to Gemfire, twitter and splunk
bump Splunk to 1.2.0
Fix twitter module.

twitter modules need some Jackson 1 classes. Note that those can't be
loaded by the module itself if RestTemplate is loaded by Dirt (which is
the case at the moment). Hence, added jackson mapper at Dirt level
XD-945 Adding a beginning of the HDFS store module
XD-907: Add aggregate counter year resolution
XD-957 Update SI Dependency - 4.0.0.BUILD-SNAPSHOT

Mainly just import changes and a method name change on
the ChannelResolver.
XD-961: Fix XML serialization of streams
XD-962: added copylib dependency to test
XD-919 removed json param from twittersearch module
XD-945 Formatting, adding JavaDocs where missing
Fix generics warnings
Merge remote-tracking branch 'trisberg/XD-945'