Started re-working it to a django app

Big big big diff.

Needs more cleanup once in production.