Move tests to the django model.
Add very basic automatic url configuration. Fixes #2.