Ensure indexing by feature id is consistent throughout.

+ some missing test.
Merge pull request #389 from ambiata/topic/indexing

Ensure indexing by feature id is consistent throughout.
Move DateTimeUtil to core
Create Window.startingDate and use instead of Joda version
Move sparseMapToArray to FeatureLookups
Pass entity window start dates to ChordReducer