Fixed RouteRepositoryTest using real DB
Moved global param controller to routes
Added more tests to route repository test
Moved history controller to routes
Moved post content controller to routes
Moved post controller to routes
Moved post notes controller to routes