Fixed applistener.stopall; part of #241.
Changed the timer module's internals; part of #241.