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.
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
Merge pull request #3786 from mfojtik/card_293

Merged by openshift-bot