Added the ability to trigger events when entering rooms.

Now also supporting a global enter room and enter node event.