core::rt: Move thread-local scheduler to its own module
core::rt: Add BasicEventLoop