Switched to container env.
Changed exit status.
Added JSON builder and move formatting functions from main to outputs. Added CloudFormation stack building.