Generate bin/delayed_job or script/delayed_job based on Rails version.

Also refacotred Rails 3/4 switching into Delayed::Compatibility.