Allow updating services when quota is almost reached

The MaxServiceInstancePolicy assumes that all requests are to create a
service instance, and therefore checks whether the quota is less than
the quota, rather than <=. This is a problem when you're exactly at the
quota limit and try to, for example, rename a service instance. You get
a message saying you've exceeded your quota, which you haven't.
Correct super delegation in model hooks

Sequel expects super to be called *last* in `before` hooks and *first*
in `after` hooks. The only exception to this rule seems to be when we
need to detect changed columns in `after_save` hooks since the `dirty`
plugin clears its state in `after_save`.

[#68919544]

Signed-off-by: Joseph Palermo <jpalermo@pivotallabs.com>
Move AppUsageEvent creation for App into after_create and after_update

- Allows us to use the Sequel standard of calling super first in after_*

[#68919544]

Signed-off-by: Joseph Palermo <jpalermo@pivotallabs.com>
Merge remote-tracking branch 'origin/pr/210'
User provided instances dont count towards quota
Clean up controller specs
Fix " IN " query parameter to work with types other than strings

- Move validation logic into the model when possible
Remove unused class

[#74337848]
Rename BulkApps to BulkAppsController

To match its filename and CC conventions [#74337848]
Extract bulk api config out of controller

So a controller does not have class methods, this is unconventional [#74337848]
Extract StagedAppsQuery before modifying it

So it is easier to write a unit test for just the query [#74337848]
Exlude apps without a detected start command

In Diego an app can get marked as STAGED before its start command is known
causing a race between the bulk importer in nsync and the desired app message.
By exluding apps without a start command the bulk apps importer will never
see an app before it is actually ready to be started [#74337848]

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Add specs for controller attributes and query_parameters

- Remove dead logic related to ResponseMessage objects

[#74568598]
Document User creation endpoint

- Don't allow update of a User's guid

[#74572362]
Initialize bundler in Rakefile so bundle exec is not needed

[#74573028]
Clean up Billing Events Controller specs

[#74579312]
syslog aggregator drops to vcap user

[#73622734]
Signed-off-by: Michael Fraenkel <fraenkel@us.ibm.com>
Clean up Buildpack and Buildpack Controller

-Move reordering logic into model callbacks.

[#74579312]
Update Rake version
Clean up controller specs

-Crashes, Domains, Events, Files

[#74579312]
Clean up controller specs

- Info, Instances, LegacyInfo
- Deprecated Legacy Info
- Added token_endpoint to Info

[#74579312]