Add CloudFormation utility functions

This adds some general-purpose functions to create or update an AWS CloudFormation stack from a JSON template file.
I think the variable name `fail` without further explanation is a little hard to understand at first glance, but not a big deal.