Steps towards new rust.

Callbacks still to be changed and some cleanup necessary.
Reading from stdout.
Use new time crate.
Properly work with new rust.