set a RACK_ENV variable, for sinatra deployments, and handle new resque signals