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
Process postgresql.conf on each cartridge startup

Basically mimicing what MySQL cartridge does.
Difference in ERB template location is taken into account.
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
Fix extended tests
Double up memory limits for embedded MySQL cart
Use oo-erb instead of erb
Set the PassengerMaxPoolSize according to the current gear memory in Ruby cart
Update MaxClient and ServerLimit according to the gear memory in PHP
Remove alert border
Adjust variable border colors which will be used behind the alert icon
Label margin left reduced to align with tile title
Refactoring of tile-table scss with adjustments to support add cart tiles with icons
Remove commented haml from _tile.html.haml and _application_type.html.haml

Associate icon with alert types along with right border.

Change overflow: to visible

Remove whitespace and haml that was commented out and not needed
Set the 'stack-size' for WSGI python application based on the gear size
Updated Cartridge-Version in all affected cart
Fix string comparison in marker checks
Bug 1020029 - needed to enumerate all threads in the task dir.
Merge pull request #3835 from BanzaiMan/dev/hasari/c18

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

Merged by openshift-bot