Handle JSON doc returned from CloudFormation GetTemplate request.  Add test.  Fixes https://github.com/aws/aws-cli/issues/105.