Refactor views into Rails templates; setup initial routes.