Improved handling of accounts in the library.
Fixed FileCredentialStore bug.