Add ids to timers.

This allows a single handler to register and differentiate
between multiple timers.

Make handler's on_time function take the timer id.