Add support to rewrite routes in app.

It's need when app routes will bebefore pages routes.