Make weave tests behave

Most importantly:
- make them not leave behind any files in the dir that the tests are run from
- do not print anything by default

Furthermore a lot of random cleanups and deletions of unused or commented out code.