Consider number of available instances in deas before starting app.

This change set allows users to take advantage of the available instances capability in dea and limit the number app instances spawned per dea.

revert changes made to white spaces

revert changes made to white spaces 2