I think serialization is working

- I don't have any idea how to automate this test
Many fixes

- Gracefull(ish) shutdown
- task_server_test now waits for workers to finish in-between tests
- A few million other bug fixes
Merge branches 'master' and 'add_serialization'