Add password support and some cleanups.
Acceptance tests for password handling.