Revamp hostname/url determination

I've wrapped array references in key checks and have added support for
looking at both SERVER_NAME and HTTP_HOST to generate base URLs.
Add server uri method
Migrate to HTTP URL; update tests

Rather than using discrete string properties to contain server and
application URIs, I've swap out for a since URL property which can in
turn provide the various needs.