Django port

This branch moves everything into a reusable, extendable Django app. The original js code is in the `swag/static/swag/` directory. See README for details.