Reworked debug interface, cleaned up and redesigned to use Backbone.js

The code behaves the same, but now passes JSLint and uses [backbone](http://backbonejs.org/) with [underscore templates](http://underscorejs.org/#template).

Future work should involve
- Use of [requirejs](http://requirejs.org/)
- CSS styling
- Addition of map