Bug 974632

Create ~/.gem, owned by the gear user, for all cartridges.
To have user gems be installed in this directory, we now set $GEM_HOME
explicitly on all cartridges.

Subsequently, the Ruby 1.9 cartridge need not create ~/.gem.
Bug 974983

Set up $PATH so that executables installed by a gem can be found.
Resurrect file permissions tests that existed for v1 PHP cartridge

The tests now includes `~/.gem`, which is created for all cartridges.
See https://bugzilla.redhat.com/show_bug.cgi?id=974632
Remove unsightly comment
node-util: Fixing undefined local variable due to typo
Merge pull request #2865 from BanzaiMan/dev/hasari/bz974632

Merged by openshift-bot
Merge pull request #2949 from mmahut/master

Merged by openshift-bot
Merge pull request #2952 from pmorie/fix-tests

Fix mysql scaling tests
WIP: move core migration into origin-server
Moving unit tests from li to origin-server
Move migrate_action into openshift agent, move cuke tests
Rename rhc-admin-migrate to oo-admin-migrate and move into origin-server