Strip URL parameters when creating base URL.

The problem arose from links produced by Marketo which took the
following form:

    http://docs.sencha.com/architect/2-0/?mkt_tok=LONGHASH#!/guide

Now we're stripping all URL parameters after the question mark, leaving
just the path and hash-bang parameters.