Add promise wrapper around IndexedDB calls

Unfortunately, the wrapper around IndexedDB seems to
be causing issues in Angular's dependency injection.
Fix async wrapper around IndexedDB
Rewrite of Auth service to use IndexedDB

Rewrite all auth services and redefine API. Use
IndexedDB to store and fetch a single authorization
object with different properties as fields.
Merge branch 'master' of github.com:Apophenia/camera-backup-ffos into login
Resolve correctly from promise (still returns cursor rather than result)
Replace w3 examples with ownCloud-specific ones
Removes traces of old API from auth service
Temporarily disable calls to upload service while Auth service is refactored
Retrieve auth information from IndexedDB on pageload
Copy form contents into database on update