Added 'httpd_restart_action' function to Bash SDK

This function will handle restart/start operation in case when the
HTTPD pid file is corrupted or missing or the HTTPD service is not
running for some reason.

The main purpose of this function is to make sure that HTTPD based
application will restart successfuly when stopped/crashed.
Updated 'restart' operation for all HTTPD based cartridges to use
'httpd_restart_action'
Merge pull request #3341 from mfojtik/bugzilla/990417

Merged by openshift-bot