Review Board 2.0.8

HUE-878: [desktop] Add a remote user backend to better support running Hue behind a proxy server

Review Request #2401 - Created Oct. 22, 2012 and submitted - Latest diff uploaded

Joey Echeverria
Created a simple middleware to fix a bug in Django's built-in remote user middleware that properly sets the header name to have the HTTP\_ prefix and added a backend that authenticates or creates a user given nothing but the header. I also had to modify the to load the new middleware class.
I did some testing on a one node virtual cluster running CDH4.1. I applied the patch, set the backend to desktop.auth.backend.RemoteUserDjangoBackend and then used a Firefox add on to set the REMOTE\_USER header as if the request came through a proxy. I then changed the backend back to the default one and verified that setting the header had no effect.