Improvements to the way user objects are retrieved in dev environment to avoid redirect loops
Fixed malformed url problem when redirecting to CAS from profile page