added support for username/password

added support for connecting to brokers with username/passwords, note
the password is stored locally in cleartext for now, needs to be fixed
later by encrypting it!