Refactor pages_controller, page model, page routing and page views
Refactor blogs_controller, blog model, blog routing and blog views
Fix broken test