Eliminate singletons

Plaid was designed around using a few singletons, creating ugly
interdependencies between modules.