User Context and Device Context bug fixes:

1. Fixed user deserialization in sdk.
2. LoggedInUser not getting set after login.
3. CurrentDevice not getting set after device registration.