Validate endpoint URL being saved during registration
Fix another reference to URI which would have referred to the wrong class

Sinatra defines Sinatra::Application::URI, which is picked up when
referring to `URI` within an application.
Set hostname in tests to fix failing example
Merge pull request #4 from ausaccessfed/bugfix/#4-url-validation

URLs should be validated before registration is allowed to proceed