Revert "chmod app package to 0744 before sending it to the blobstore"

This reverts commit c1e4b7a100b22c469907374f9cb40189714cc15d.
Set the 'diego' bit when diego.running is required

If the diego bit isn't set, the app will eventually run on DEAs.

[#76629600]
User visibility for Orgs and Spaces

* Allow users to see their own roles
* Allow users to see roles of orgs and spaces they are a member of

[#79179296]

Signed-off-by: Matthew Sykes <matthew.sykes@gmail.com>
Change col type from string to text on droplet.

- detected_start_command
- execution_metadata

[#79738438]
Update fog to 1.23.0

[#78431972]
Create syslog_drain_urls endpoint

allows listing all syslog_drain_urls bound to all applications

[#79293594]
Finishes /v2/syslog_drain_urls Endpoint.

- HTTP Query now takes an integer for an id rather than a hash.
- Crafted a better (and more confusing) Sequel query
- Were not able to have a single query to fetch the whole set yet

[#79293594]
Eager load service bindigs when fetching apps for syslog drain urls

 - Change basic error response to 401 (Unauthorized) rather than 403
 (Forbidden)

[#79293594]
Doppler now does the syslog stuff

Signed-off-by: Trevor Ackerman <tackerman@pivotal.io>
Ignore blank syslog_drain_url for the syslog_drain_urls endpoint

[#79293594]
Lock the app when performing a restage

[#79658946]
Buildpack bits should use nginx when downloading

[#80080142]
/v2/syslog_drain_urls no longer returns nil or empty strings

[#79293594]
bulk endpoints should respect diego cc configuration

[#79973812]

Signed-off-by: Johannes Petzold <jpetzold@pivotal.io>
Updated valid deigo config options
Add drain for restarts due to memory usage

* restart_drain unregisters cc route, kills nginx gracefully but hard
  timeout after 30 secs, and then kills cc

* relies on monit to restart cc after we kill it

[#79416982]
Fix race condition when figuring out positions for buildpacks.

- Creates a locking table for full table locks

[#80149038]
Merge remote-tracking branch 'origin/pr/303'
Revert "Revert "Upgrade to ruby 2.1.2""

This reverts commit 4016bcd7b1bbc8a0165e8b0728d349829de03fda.
Revert "Revert "Reverting mysql to 0.3.13 due to "undefined symbol" issue during deploy""

This reverts commit 9e6f6524bfb184b1ff2550df0950c5b8893ac3ba.