add todos and make testing easier
refactor globals and organization

- moved all globals into more specific scopes
- removed encodeHTML since angular does so by default when displaying
- changed indentation on commented methods so that code folding works
- moved everything around; new order: app declaration, config,
controllers, directives, filters, commented out for future
- add todo (fix contenteditable directive)