Rename emscripten_set_main_loop_interval to emscripten_set_main_loop_timing and add mode parameter to specify the main loop timing mode.