Adapt to API changes in Tulip

- s/Handler/Handle/
- No nested calls to run_*
Added handling for readable and writable pipes

Use code from unix_events