Fix priority_list's `insert()`.
Various fixes and new code.

Timer features don't quite work. If I first set the one shots, then only
the periodic fires up (but works!). If I set periodic first, then firts
the last one shot fires, then periodic kicks in... calling the one
shot's callback. Let's go on adventure, time to debug!