Add unit tests and fix a variety of relative date bugs

This now uses dateutil to calculate relative time
deltas. I don't like having to rely on a big
dependency like that, but they've already solved
that problem right™, so I'd prefer to take advantage
of that expertise rather than duplicating it.
Bump version number