Deleted root __init__.py since not a package
Implemented xsrf cookies and db write checking
Added helpers.py