Support for intelligent bubble event model

Ripped out event filtering to use simpler, more performant tree model.
layer of indirection for DOM manipulation

Added layer of indirection for working with the DOM--so that a delegate
library can be used to supply such functionality.  The event model has
been moved to a separate library.  Added priority when registering
listeners for added control over implementation behaviors.  Input box is
drawn on left click.