Add classpath module location

Converts XD_HOME to expect a resource prefix. Tested with poster
and batch job. To create your own XD package with custom modules
depend on DIRT and then add modules/* to the classpath.

Add test for UrlResource and module registry

Switch to resource pattern as root for module
unset XD_* in gradlew
XD-1047: Add timeField and timeFormat to aggregatecounter

Allows the time bucket to be selected based on a field within the message.
XD-1064, XD-1066, XD-1072

Parser now retains prefix for topic and queue channels

Fix router sink logic with named channels (XD-1064)

Fix topic channel behavior (XD-1066)

Added bridge module(XD-1072)

Removed duplicates in ChannelNode.stringify() and use existing RedisTemplate in RedisSingleNode...Tests

Merged Andy Cs ChannelNode changes
XD-1100, XD-1101

Easy add of redis store

Add jdbc MessageStore

Add autodetecttion of DB kind
XD-1102: Basic benchmark of Message stores
XD-1061: Update Asciidoctor
Fix html doc rendering
XD-1107 Mock DistributedJobService

- Create a simple mock for DistributedJobService
- Update before method to initialize 'isLaunchable' explicitly
Tidy up XD_HOME

* Revert to XD_HOME being a directory (no file: prefix)
* Keep classpath*/modules as an alternative module location
* Introduce extra optional indirection for everything under XD_HOME
(e.g. xd.data.home, xd.module.home, xd.ui.home, xd.config.home)
* Tested shell scripts in xd-*

Ensure SimpleModule copies profiles from parent Environment

Some people have been seeing spurious entries in Redis. This is
because a Module context would have been using the default
settings for transport and store. Now that the Environment is
passed down to child contexts it should be cleaner.
Ensure modules have command line properties

Also changes XdInitializer implementation because it
wasn't getting called in the right order, and it didn't
really need to be an ApplicationContextInitializer.
increased timeout for stream tests
stabilize *SingleNodeStreamIntegrationTests
Fix singlenode logging config.

It had accidentally been set to point at the container logging
properties file instead.
XD-1110 Fix JobRepoTests

- Fixed JobRepoTests to use a test hsql database
  so that the batch repo is different from what XD runtime uses.
XD-1082 Add REST API for getting JobExecution for Id

* Add test

Jira: https://jira.springsource.org/browse/XD-1082
XD-1112 Container node uses port scan by default
XD-1109 Coerce command line options

Renames and use of comments for XD-707
XD-981 Updating to use Hadoop 2.2.0 stable release
XD-1096 Make BatchControllers HATEOAS compliant

- Added ResourceAssemblers for:
  1) ExpandedJobInfo and BatchJobInfo
  2) JobExecutionInfo
- Created REST domain DTO classes:
  1) ExpandedJobInfoResource
  2) BatchJobInfoResource
  3) JobExecutionInfoResource
- Updated the BatchJobsController & BatchJobExecutionsController

XD-1096 Better naming on Batch resources

- Remove "Batch" prefix on JobInfo, DetailedJobInfo
- Rename resource assemblers
- Renamed ExpandedJobInfo -> DetailedJobInfo

XD-1096 Fix review comments and fix getJobExecutionInfo()