Moved functionality to utilities, including tests.  Added filter for date comparison.
Merge branch 'master' of https://github.com/ericstiles/beetle