Add debugger, add features to the webui to be able to run commands, move code to require.js based system