Reworked middleware.py so that 500 Error pages are in any case shown
Merge pull request #201 from SysTheron/500ErrorPage

500 Error Page for Debug mode