Initial commit of work on Diagrams/Cairo/Gtk-based UI.
Add a basic text mode again.

Also, remove the now-unused Timer module.
Cleanup Main and Text; remove old, single-file code.