Refactor templates to reduce php
Update to approval logic to allow deploying to platforms as long as any dependant platforms are met