Adds asynchronous thread management

- Posix Thread and Gevent support
Moves imports
Merge pull request #498 from lukecampbell/async-r2

Adds asynchronous thread management R2