use window for indexedDB detection
refactor the e2e tests a bit
Refactor NG modules to be layered instead of siloed

per recommendation at http://docs.angularjs.org/guide/module
Improve the action language for draft link