Prepending tasks to the queue (unshift)

DRY implementation of `queue.unshift`