add setup.py
make compatible with django 1.5:
  - replace function-based generic views
  - imports
  - update templates
Merge branch 'compatibility-1.5'
Merge branch 'add-setup-py'