Add back PouchDB to bower config as it is required for the unit tests.
Implement base authentication functionality.
Delete cached promises on user change (login/logout).