Timeout implementation

Proposed implementation of get/set timeout on sockets. Issue #8