Add a compatibility module based on ActiveSupport version.

* Refactored version switching into Delayed::Compatibility.
Generate delayed_job executable based on ActiveSupport version.

* Rails 4 compatibility.