Seems to be pretty much working, overall!
Added some tests, better date handling

Going towards implementation of permalink URLs, this now handles
month/day-only dates correctly.