allow hostname and port in place of host on uri
add unit test for URI specified by hostname and port
Merge pull request #1138 from cappslock/master

allow hostname and port in place of host on uri