[SD-850] API for session management
[SD-850] Apiary changes for preferences
Merge remote-tracking branch 'andrew/master'