Change corresponding to adb5092a for Ruby 1.8 cartridge
Bug 952041 - Add support for tidy to DIY and PHP cartridges

* Add env variables and code to clean log directories
* Restore start/stop hooks to DIY cartridge
Merge pull request #2073 from jwhonce/bug/952041

Bug 952041 and Bug 952042 - Add support for tidy to DIY and PHP cartridges
doc updates
Automatic commit of package [openshift-origin-cartridge-diy] release [0.2.6-1].
Automatic commit of package [rubygem-openshift-origin-node] release [1.7.27-1].
Automatic commit of package [openshift-origin-cartridge-jbossews] release [0.2.6-1].
Automatic commit of package [openshift-origin-cartridge-python] release [0.2.8-1].
Automatic commit of package [openshift-origin-cartridge-perl] release [0.2.8-1].
Automatic commit of package [openshift-origin-cartridge-jbossas] release [1.0.6-1].
Automatic commit of package [openshift-origin-cartridge-jbosseap] release [2.1.7-1].
Automatic commit of package [openshift-origin-cartridge-php] release [0.2.6-1].
Automatic commit of package [openshift-origin-cartridge-jenkins] release [1.7.7-1].
Automatic commit of package [openshift-origin-cartridge-nodejs] release [1.8.7-1].
Automatic commit of package [openshift-origin-node-util] release [1.7.5-1].
Automatic commit of package [openshift-origin-cartridge-ruby] release [0.2.8-1].
Merge pull request #2072 from BanzaiMan/digit_only_login_fix

Merged by openshift-bot
Bug 949844: Add support for threaddump command in v2 Ruby cartridge.

In the v1 cartridge, we used a custom thread dumper library to respond to QUIT signal and dump thread information to the log file. (See, e.g., https://github.com/openshift/origin-server/blob/openshift-origin-cartridge-ruby-1.9-scl-1.7.4-1/cartridges/openshift-origin-cartridge-ruby-1.9-scl/template/thread-dumper.rb)
This is not a standard Ruby library, and does not work with users' applications in general.

Instead, in the v2 cartridge, we rely on Passenger's handling of ABRT signal (http://www.modrails.com/documentation/Users%20guide%20Apache.html#debugging_frozen) to dump thread state to the log file. Do note that this will terminate the current application; this is a divergence from the previous behavior, and the users should be duly informed.
Combine bin/threaddump into bin/control.
No need to test state file in the cartridge.