A port of the node.js OAButton server code to Python/Django