Add Chord windowing reducer logic and tests

This isn't currently wired up, and requires squash to be completed first.
Always write out the last fact before each chord entity window (for state-based features)
Merge pull request #359 from ambiata/topic/chord-windowing-part-1

Add Chord windowing reducer logic and tests