Ensure that the Redis and RedisMultiQueue failure types correctly extend
(not include) Resque::Failure::Each. This fixes a breaking change introduced
in 890ca9f.

Additionally, the refactoring also changed the behavior of ::each such
that if there were a single failure, the given block with yield to each
attribute of the failure rather than just the single failure.

Fixes #992
Remove unnecessary comment and add newline
Add tests for the Redis and RedisMultiQueue failure types
Ensure the ::all method of Failure::Redis and Failure::RedisMultiQueue always
return an Array per the documentation of Failure::Base.
Add graceful_term option so TERM works like QUIT

If Worker#graceful_term is enabled, SIGTERM waits for a job to complete
before exiting (just like SIGQUIT).

Worker#graceful_term defaults to ENV['GRACEFUL_TERM'].

This makes it possible to use resque with runit/daemontools without
resorting to a wrapper script.
Properly set graceful_term option
introduce Resque::Options as a wrapper for the options hash, replace will_fork? with options.fork_per_job. change legacy tests to make this easier to change in future refactorings
Merge pull request #1020 from jacobo/will_fork_refactor

introduce Resque::Options, delete will_fork?
Remove some unnecessary "begin" keywords
extract signal trapping to SignalTrapper
Merge pull request #1023 from signaturelabs/unnecessary_begins

Remove some unnecessary "begin" keywords
change "extend self" style of SignalTrapper
Merge pull request #1024 from signaturelabs/signal_trap_extraction

Extract signal trapping to SignalTrapper
Use File to grab yml redis file

In Rails 4.0.0.rc1 and ruby 2.0.0-p0, the Rails.root doesn't extend
the path correctly via "Rails.root.join". This patch uses ruby's
File.join to join the dirs together into a correct, full path.
Merge pull request #1025 from ekampp/master

Correctly join file path to include redis yml
Defining the jruby? method

This defines the jruby? method used in d4e5693d but never defined. This
was discussed in #1003.
Merge pull request #1028 from ekampp/master

Defining the missing jruby? method
Merge pull request #993 from kpshek/fix_992

Ensure that the Redis and RedisMultiQueue failure types correctly extend Resque::Failure::Each
Merge branch 'master' into graceful_term

Resolved conflict with trapping TERM signals

Conflicts:
	lib/resque/worker.rb
Fix the build for ruby 2.0