Run tests with a proper app from main.py.
Fixed div by zero error in admin.py
Removed test command.
Now testing the admin view too.
Now using Travis CI.