Following mjhea0's TDD flaskr tutorial, making some additions.