Changes of routes

Changed the order of routes to correct a bug: when asked for /repository/name/branches|etc the regex of /repository/name matched first.