Make credential persistence optional.

Closes #44.