Handle JSON doc returned from CloudFormation GetTemplate request.  Add test.  Fixes https://github.com/aws/aws-cli/issues/105.
Move events to session.py rather than a separate module.  Added some tests, merged with origin.