Query strings for m.route

I added support for query strings to m.route. Details in the commits.

Hope this is useful.