Fix endpoint manifest entries in database cartridges

Make the private IP/Port names consistent with the public endpoint
naming expectations and with the expectations of the configure scripts.
Merge pull request #1377 from ironcladlou/bugs/db_endpoint_manifests

Merged by openshift-bot
use correct sort syntax
Performance fixes around retrieving apps and domains
Merge pull request #1375 from danmcp/master

Merged by openshift-bot
Bug 868427: Fix tidy for v1 carts
Add request id to mco requests
Add index on domain_id
Merge pull request #1378 from ironcladlou/bz/868427

Merged by openshift-bot
Merge pull request #1380 from danmcp/master

Merged by openshift-bot