uncommented middleware and fixed traceback problem
removed error in views..
Merge pull request #153 from stealthycoin/uncomment_middleware

Uncomment middleware