allow localhost as hostname
Merge pull request #47 from racker/jjbuchan/allow_localhost_as_hostname

Allow localhost as hostname