Add support for password protected servers

Fixes #28.