Move functional test from stand-alone file to app and update to use LiveServerTestCase for automatic DB creation/teardown. This also enables us to use manage.py test <appname> for all tests and run all tests at the same time.