Huge refactor of routes, views, and controllers