Extracted packet magic, refactored response packets, added lots of tests, made handling work data / exception / warning / failures generic to work with embedded job servers, more progress towards making things more testable and componentized.