Refactor to use pthreads & proper state machine.  Clean up style, fix alloc
bugs, and also use strtok() from libc.
Update zonedoor.c

added documentation for the protocol  used.
Merge pull request #11 from gdamore/garrett

Refactor to use pthreads & proper state machine.  Clean up style, fix al...
Fixed alerting on restart of zdoor.
merge