Adds asynchronous thread management

- Posix Thread and Gevent support