Refactor Main.js

Main.js is too big to modify now .  Add new file (TodoContext.js) to
maintain extension context and isolate modification of brackets API.
make settings dialog UI
Implement settings dialog