Moving JS code in index.html into debugger.js

Abstracted the debugger specific JS code into the GiraphDebugger class. This makes index.html much cleaner and the system truly modular.