Correctly treats "localhost" as a URL.
Checks for ports on public web addresses.
cleanup
Merge pull request #21 from kevgo/master

Correctly treats "http://localhost" as a URL.