fix test
clean up
more term.js shenanigans, including adding ng-websocket to allow testing