Add port in urls unless port 80 or 443
Move logic into build_url
Merge pull request #192 from scrogson/fix_build_url

Add port in urls unless port 80 or 443