Break timed event code into its own file

Signed-off-by: Nathan LeClaire <nathan.leclaire@docker.com>