Finished source-code spring cleaning

Wow. I have finished up with source-code spring cleaning. Now all the pieces of code use the new infrastructure (the one that already powers the BitTorrent test) and the old code has been decommissioned. The code is now looking 0.4-ish, but before we can bless the first testing release there is work to be done to move options into the database. As usual, the changes are available upstream.