Reorganise a lot of code. Make libs more posixey. Tidy. Make plugins more pluggable. Add nasty sawtooth plugin.