Feature/client side routing serialize query

https://www.openproject.org/work_packages/8444
@tilt I'm not sure how this got back in here (perhaps a dodgy merge in 5812bc78?) In any case, this and the `run` function below should not both be present.