Added option to use time of day encoder.

Fixes #16.
So you'll want `n = 2048` and `w = 51` for the date encoder, assuming you're going to be using more date fields in addition to timeOfDay. I'm not sure how to set those values for the date encoder though, maybe @scottpurdy will have a better idea.