Rewriting application from ground up according to MVC