Added agents CloudFormation template.

This is work in progress (i.e. not ready to be merged) - I'll add more details in the next comment.