Add invjday, tests, and docs.

Refs #162

This commit also refactors days2mdh so it sends back an object usable by
 invjday. I just made days2mdh return the year, too. I don't really see much
the difference between these two functions. One just seems to call the
other and return its results...