0210 edits

This is the first branch of edits for tectonic. I figure that I should pause here in preparation for changes to the main body of the prefork server package.

None of these are momentous, and mostly it involves moving code around and creating unittests.