Adds condition-variable-type event objects that threads can wait on and signal to the API. The implementation is just a wrapper around the internal event_t interfaces.
Adds a test to the client.thread test by converting its prior hacky use of bools and yielding to proper events.
Fixes #279 (closed)