Update gitignore for PyCharm
Tidy up setup.py
Clean up middleware and context processors.