Unit tests! YAY!

Massive amounts of refactoring -- made almost every static method in the
Manager classes non-static. Added DI for unit testability to pretty much
everything. Speaking of which, I added the first of many unit tests!