Update middleware.py

Fixed reading the request ID from META dict.
Merge pull request #2 from math2k/patch-1

Replace hardcoded key with config variable