Remove TaskScheduler and ImmediateEventExecutor that requires TaskScheduler

- Related issue: #817