Refactor app validations to policies to reduce app class complexity.

[#61846226]

Signed-off-by: Phan Le <ple@pivotallabs.com>
Cloud Controller generates VCAP_APPLICATION for DEAs.

[#61846226]

Signed-off-by: Phan Le <ple@pivotallabs.com>