Create middleware for Sidekiq and job-hooks for Resque