Make TaskRuntime implement Runnable interface; move Thread to ContextRuntime