Rewrote most of web interface in coffeescript, cleaning things up.