Adding sane defaults for host and port and refactoring the connection Hash