Make class for the router and fixes cleaning query_vars

Also added the basic rewrite rules for projects, login and profile. See
ticket #3