added support for Caching APIs and logic to persist login between application runs