Rewrote most unit-tests, still need a lot of cleanup.

- Removed legacy code from dispersy
- Removed crazy if __debug__ imports