Update app.js
Move directives to seperate files, cleanup app.js
Merge pull request #227 from whiteout-io/dev/cleanup

Move directives to seperate files, cleanup app.js
Add comments to app.js
Refactor rest dao to use promises
Refactor public key service to use promises
Refactor pgp service to use promises
Refactor lawnchair dao to promises
Test lawnchair dao

Test pgp promise api
Fix error handling in lawnchair dao
Fix rest dao and invitation dao
Test device storage dao
Test public key dao
WIP: start refactoring auth service to promises
WIP: start refactoring auth service to promises