Implemented proper time management and utility functions.
Low-level works in u64 nanoseconds, higher level uses double precision in seconds.
Time functions are now exposed to script.
Removed old time classes