Install clone module
Don't create brand new object for user session

We clone the user object passed in and apply special treatment to any keys that need it
JSON.parse on the settings string
setting of Data for last login
creation of gravatar url