Escape semi-colons so they can be searched.

JIRA: https://activestate.atlassian.net/browse/STO-670
Bugzilla: https://bugs.activestate.com/show_bug.cgi?id=104026

CC Github issue: https://github.com/cloudfoundry/cloud_controller_ng/issues/258
Pivotal tracker: https://www.pivotaltracker.com/story/show/72931502
Follow rubucop-enfored style guide
Use unique names to avoid the collision with query_spec.rb
Update the unit test for semicolons in queries to use a sqlite db and full string matches.
rename loggregator_endpoint to metron_endpoint

[#74960322]
Merge remote-tracking branch 'origin/pr/259'
Merge remote-tracking branch 'origin/pr/273'
Add code coverage for code climate

[#70097864]
return a pleasant error when diego is unavailable

[#74426166]

Signed-off-by: Simon Leung <leungs@us.ibm.com>
Fix typo in travis.yml
introduce app diego flag to app model

this is set iff the CF_DIEGO_RUN_BETA environment variable is set, and is not
exposed through the API. this allows us to perform more efficient queries in
the new bulk apps endpoint (where we only want to include diego apps).

Signed-off-by: Simon Leung <leungs@us.ibm.com>
don't blow up if the diego column goes away when saving the app

...as will happen some time in the future.

Signed-off-by: Simon Leung <leungs@us.ibm.com>
only include diego apps in the new bulk endpoint

Signed-off-by: Simon Leung <leungs@us.ibm.com>