Changed priority of UrlRewriter

It should pass before markdown
Merged carew and application
Get ride of base_dir