Added profile updating, storing sessionKey & profileId, getting profile info.