Define the test server request/response creation functions also for non-unittest builds.
URLRouter performance optimization.

 - Low level optimization of the new tree match algorithm
 - Optimize handling the path prefix: Instead of adding all routes with the prefix prepended, the prefix is now removed from every incoming request. This is especially helpful for the new tree match algorithm.