Split Time class out into its own file.
Added a (way too) simple Time.format method, and made Time global.