Add EventLoop.scheduled_function and stm.eventloop.scheduled_function, decorators which cause their underlying functions to be run on the event loop