Wrote a test for events.Dispatch, and added a dispatcher for X events.
Wrote the desktop management functions.
Added a file tracking the hierarchy of the `wm` object.

This will be useful when I need to implement it, so that the structure
will be known ahead of time.
Wrote a module of layer management functions.