MAX: Realtime messaging and activity stream engine