emit-events switch

With the -emit-events flag set, instead of printing, grin will emit
events.