Tune postgres memory usage based on available mem

On standalone gears, use maximum available memory to set parameters.
Tune MySQL parameters via OPENSHIFT_GEAR_MEMORY_MB
Ensure Drupal gears can migrate

This is a redo of f9c1089, which addressed
https://bugzilla.redhat.com/show_bug.cgi?id=1008043 and
https://bugzilla.redhat.com/show_bug.cgi?id=1013673.
Guard against removing innoDB logs
Bug 1019132 - removed member is not saved
Process postgresql.conf on each cartridge startup

Basically mimicing what MySQL cartridge does.
Difference in ERB template location is taken into account.
Fix bug 987758 - formtastic error rendering
resource_limits: Delete settings for httpd

Delete settings in resource_limits.conf that are no longer used.  In
particular, commit 3b74dd3d162a9a3b63a7ac4e1eaccea6b889e186 (removing v1
cartridges) removed all use of the apache_bandwidth, apache_maxconnection,
apache_bandwidtherror, rotatelogs_interval, and rotatelogs_format settings.

Note that the tc_max_bandwidth and tc_user_share settings can be used
now for bandwidth control.

See the thread 'network bandwidth' at
http://lists.openshift.redhat.com/openshift-archives/dev/2013-August/thread.html#00091
Bump up memory for standalone cartridges
Bump MyISAM memory parameters

Based loosely on
http://serverfault.com/questions/354872/best-my-cnf-configuration-for-a-8gb-mysql-server-with-myisam-use-only
Fixing origin extended tests
Fix extended tests
<docs> extra step to route admin-console
typo fix
Allow gear_size parameter during application creation and cartridge addition.
Double up memory limits for embedded MySQL cart
Add description field to endpoints so that TLS urls can report what they are for.
Merge pull request #3895 from sosiouxme/admin-console-doc-routing

Merged by openshift-bot
Use oo-erb instead of erb
oo-diagnostics: Fix check for mlocate package

test_altered_package_owned_configs: Check the exit code of `rpm -q mlocate`
instead of checking the output.

The old code erroneously assumed that the rpm command would give no output
if the package were not installed, and so it would always return true even
if mlocate were not present.