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.