Implementing typed events, and handling them on client.

GlyphTree now interprets the EventSource events and makes changes to the tree accordingly.