Move ThreadContext to thread module and expose api through djedi.x