Store Window.active_timers in a HashMap

A HashMap allows easily looking up a timer and canceling it in
Window.ClearTimeout.

Fixes #1477.