[TAC-96] session preferences refactoring
[TAC-96] taitale JS integration improvments