Added the posibility to specify a username and password to use for the connection

Note that I have changed the way the client constructor receives its options. It
is still backward compatible though!