Support RFC-1738 URLs

Fixes #149
make host url parsing more resilient

Reject invalid combinations of url scheme and connection_class