Add support for emulating browser events.

 * Add a directive that fakes a document click.
 * This is used by the Flyout directive to know when to close after valid selection.