Correcting outdated examples in docs.md

onBeforeAction no longer uses call to this.stop() but uses pause() instead.
pathFor helper no longer accepts query string in format key=value but instead takes query='key=value'