Django webapp

Removed the whole tornado stuff and rebuilded the web app for django.