Moved runtime code into library, as runtime.rs.
Removed trace! macro and converted all to use debug!.
Some misc cleanup.
Full state machine now works.
Cleaned up runtime a bit.
Some doc updates
Adding docs
Improving testg.rs sample.