origin_runtime_293 - tune JBoss cartridges to use OPENSHIFT_GEAR_MEMORY_MB

PR for [origin_runtime_293][1].

Updated JBoss cartridges to use OPENSHIFT_GEAR_MEMORY_MB for memory calculations

[1]: https://trello.com/c/hQW3Dx0u