Fixes #62, normalize endpoint URI

* Performs basic URI validation (no spaces, special characters, etc.)
* Normalizes default port numbers (removes 80, 443 from http(s) links)
Version bump to 3.1.0.beta.1
Merge pull request #68 from arax/url-handling

Fixes #62, normalize endpoint URI