Cleanup.
Remove dead code.
Begin work on decoupling rendering from updating.
Decouple painting from updating.
Update comment.
Have events handled as soon as they are posted instead of queueing them.

This is an experimental change in preparation for some changes to the
way events are handled.
Another small experimental change to event handling.
Just a few misc changes for the new event system.
Begin implementing the new markup loader.