Cleaned up the ascii server

Added a real websocket protocol, fixed the ugly template path hack, and
implemented resetting.