Add views.py and models.py, and refactor into modules.