Move host runtime implementation/simulator from C++ to JavaScript

Not very useful at the moment, will just load a graph and display
the ticks of a JS graph. Requires a custom IO backend, and
integration with a user interface.