fix and refactor realtime sockjs redis pubsub

Pushing common authentication logic into the RedisSockJSConnection base
class and adding email to participant connection event
set session engine to use cache instead of db