Replace the ungodly mess of urlparse with furl, fix tests.