Do not let $scope be undefined
Add DBI storage class
Use upper case auth method names in templates
Add iframe HTML template
Add memory storage as the default (or fallback, rather)
Initialize the storage engine specified in the settings
Use DBI storage module