Strip the query and fragment of the URL, fixing OAuth issues

The URL in used for the signature base string must exclude the query and fragment as described in 9.1.2 of the OAuth spec: http://oauth.net/core/1.0a/#anchor13