add unitoftime constants
start adding time conversions

We can get messages in arbitrary units of time and we may need to query
streams in arbitrary units of time. Expanded the APIs for the archiver
and the TSDB interface to support this