Reorganized package

Moved loop, socketpair, tasklet and threadpool to a common 'core'
module. Anything inside the core module should be considered an
implementation detail and is not meant to be used directly.