add queue manipulation routines.
use better name for queue_job. check if rule is in job_queue before enqueueing
to avoid duplicates in job_queue
preliminary support for filename canonicalization