Use $OPENSHIFT_TMP_DIR where applicable.
Add .openshift to the Node.js cartridge application template, so that it may be populated upon creation.

This addresses Bug 949407.
Add post_deploy hook, too.
Merge pull request #2038 from BanzaiMan/dev/hasari/bz949407

Bug 949407