Converted all plugins to new timer format

Also, made the plugin timers table have weak keys so the timer objects
are garbage collected after they're destroyed.