Backward compatibility fix for older Django versions
Fix login view, so it redirects without Site object
Implement RequestClientMiddleware