Allow multiple server configuration:

SERVER, PORT, PASSWD are now specified as a list of tuples.

Add some debug messages for connection failures/sucess.