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/)
- Migration of build to use JSHint with slightly looser style constraints
- CSS styling
- Addition of map