Add clock.lua with timed callbacks and events