job.cancel should remove references from related Queue/Scheduler.
Added a Registry class to store a map of functions to jobs that can be
used to cheaply determine whether a callable is scheduled or queued.