webserver: somewhat parse passed host before using

This uses standard urlparse package to attempt to parse a url scheme before falling back to the raw string passed.

Close Issue #15