Move contrib/security/utils.py to contrib/security/middleware.py