Bug 981594 - ApplicationContainer used as an argument needed full module paths.
Bug 981022 - only load the parts of common that are needed.
Bug 981037 - Use an O(1) generator for the common use case.
Bug 982403 - Work around contexts where gear environment is incomplete.
Merge pull request #3012 from rmillner/misc_bugs

Merged by openshift-bot
Automatic commit of package [openshift-origin-cartridge-jbossews] release [0.6.3-1].
Automatic commit of package [rubygem-openshift-origin-node] release [1.11.7-1].
Automatic commit of package [openshift-origin-cartridge-postgresql] release [0.4.5-1].
Automatic commit of package [openshift-origin-cartridge-jbossas] release [1.4.3-1].
Automatic commit of package [openshift-origin-node-util] release [1.11.5-1].
Automatic commit of package [rubygem-openshift-origin-container-selinux] release [0.0.5-1].
Automatic commit of package [rubygem-openshift-origin-controller] release [1.11.6-1].
Automatic commit of package [openshift-origin-cartridge-jbosseap] release [2.5.3-1].