organize code into libraries. in order to identify...

inappropriate module interdependencies more easily. Also, a lot of dead
code went away in the process