Refactoring to MVC

Partial refactoring of website to MVC pattern. Site is mostly broken
with this checkin.