Cleanup runner

This PR fixes sourcemaps and then cleans up the runner infrastructure in order to abstract the JS virtual machine used.