Adding session state. Both to class and thrift API.

Will be used to identify changes to session (ie. tracks
added to playlists)