Add CloudFormation template capabilities support.

Adds support for Capabilities and CapabilitiesReason to the Template
object. Fixes #2075.
Merge pull request #2111 from danielgtaylor/cf-cap

Add CloudFormation template capabilities support. Fixes #2111, #2075.