Refactor of almost the entire extension...
Merge pull request #53 from FezVrasta/master

Refactor throughout extension...
removed unused variables and unnecessary global defines for jslint
removed use of global CodeMirror object instance