Automatically clear timeouts when the clock runs

This fixes #26. It's implemented in the JavaScript, which is less than
ideal because a timeout won't clear if no one has the UI open, but because
of the way the status buttons currently work, this is the way it must be done.