Supporting key-based authentication as well

This allows for connecting to the server using just a publickey rather than password
Merge pull request #5 from gabrielfalcao/master

Supporting key-based authentication as well