Add/Fix cfn-signal/WaitCondition handling

This has been extracted from https://github.com/cityindex/elasticsearch-development-flow/pull/23#issuecomment-20461093 for separation of concerns.