Functions for searching and retrieving the session and remember cookie. Is supposed to not be needed except for saving these tokens.
Supporting parsing of JSON in HTTP retrieval of messages.