Initial support for an event queue.

Just a bare list for now. I'll start using it, and if there are
performance issues or missing features that are non-trivial, I'll
look at using a priority queue or something else.
Add control for filled/unfilled regions.
Add support for specifying color.