Add support for rails.env == 'staging'.

This commit introduces support for the new 'staging' rails environment used in www-beta.
This quick fix is chosen as a larger overhaul of login systems are due for the fall.