This is starting to look like it's good to merge now. Few more TODOs:
[x] Test that the windows build actually functions (For now I just checked that it builds)
[x] Split protocol.c into separate worker/master files
[ ] Clean up the protocol implementation. Lots of redundant logic/state in there from the various iterations.
[ ] Debug, and test protocol portability. For now I verified that connections don't seem to work from x86 -> PowerPC systems, but they do work the other way around
This is starting to look like it's good to merge now. Few more TODOs: