Factor out library(julian)

This library has grown enough to be generally useful to other projects.
I'm factoring it out to an independent library.