Use urlparse and urlunparse to assure the URL protocol is supported

This also makes the protocol default to HTTP if it either isn't specified or is not either HTTP or HTTPS.
Fixes #4