More work on tcpsocket class

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
More work on termination of msleep coroutine and loop object

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Synchronous versions of standard coroutines added

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>