fix(lib): adapt to changes in the runtime, also rename "task" to "thread"
Merge pull request #8 from japaric/fix

fix(lib): adapt to changes in the runtime, also rename "task" to "thread"