Add server flags, support for partial packet reads
Use stdbool.h

Forgive my ignorance, I'd no idea it existed. I think I've switched to
it in all of the possible cases, no doubt I've missed some though.
Simplify buffer implementation

Ultimately I tried to be too clever and it didn't work properly. I've
simplified it for now but I suspect it will probably need optimization
later.
Ensure clients aren't read/written to after close
Add a queue implementation
Complete the update service