[TASK] Finish implementing /session API.