Adding support for sidekiq.
Fixing deprecation warnings on specs.