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 #16
Merge pull request #27 from asfaltboy/patch-1

webserver: somewhat parse passed host before using