watch read/write events
better names for event types
factor out request_parse.c, move handle_request into event.c