Introducing Some structure into the codebase.

This isn't *quite* there yet, but it's functional at this point, if nothing else.

I'm going to start sorting the giant mess that is the constructor for the main TiTS class out in the next day or two, but it's interesting to look at, if nothing else.