Many improvements to date and time handling.

There are especially a lot of enhancements to the support of the
ThreeTen backport libraries. I want to start moving all my utilities to
use that instead of Joda-Time.