Refactoring theme for django-jinja and django api compliance. #154 and #147
Refactored Misago to use django-like API, added thread._local singleton. #147