XD-236: Ported aggregate counter code from kodiak.

Added query method based on Joda time interval.
Currently only supports minute resolution.
XD-236: Rewrite aggregate count test with interval queries.
XD-236: Remove unused "DayCount" query option.

Accidentally left in. Not currently usable.
Added default output of gradle app plugin as deliverables
XD-315 Shell Startup Script
Merge pull request #87 from ericbottard/XD-315

* ericbottard-XD-315-Shell-Strartup-Script:
  XD-315 Shell Startup Script
  Added default output of gradle app plugin as deliverables