tcp: Basic error handling
tcp: Save pointer to context structure
tcp: Check whether handler has been registered
error: Add code for libev watcher errors
tcp: Handle EV_ERROR events
tcp: Basic timeout handling
tcp: Add function to destroy connection