Use urlparse to handle urlparams in get_from_url.

This handles the case where the params include &mp; which
is a valid parameter, but wouldn't work.