Routing routine can cope with question marks

The routing routine failed when e.g. a third party added normal "question mark GET parameters" to the URL. With this commit these parameters are removed before the URL parts are separated.

I had this problem when I integrated for example the Facebook login. After the login of the user Facebook will redirect him or her to [myURL]?code=[someHash] and this used to break PIPs routing system.