Refreshed credentials on login/logout
Makes sure the credentials are refreshed before resolving the promises
updates manifests
Adds window.close