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].
<runtime_steps.rb> Bug 949251 - Add file check to V1 snapshot/restore test

Cuke test for snapshot/restore on V1 carts didn't check if changes
post-snapshot were persisting, and so failed to catch the condition described
in https://bugzilla.redhat.com/show_bug.cgi?id=949251

Added lines to snapshot/restore test to fix
<controller/test/cucumber> Bug 949251 - fix jboss* snapshot/restore tests

The snapshot/restore tests for the jboss* carts were using very
granular stepdefs instead of the more concise (and thorough) combined
stepdef from runtime_steps.rb. I updated these tests to take advantage
of the updated combined stepdef.