performance: shortcut http(s):// URL and do not urljoin() them
performance: shortcut http(s):// URL and do not urljoin() them

urljoin does some expensive parsing steps before deciding to return an absolute URL unchanged. This shortcuts those, only calling urljoin if an URL is not clearly absolute.

tommorris/mf2py,tommorris/mf2py