Got tab stuff working better, started working on a context menu handler.
I really need to start documenting things.