PLATFORM-392 Refactor JS lite client to use new session management