Enable download of user credentials.

Closes #529.
Merge pull request #541 from knu/download_credentials

Enable download of user credentials.