[WIP]collect aws cloudformation templates and stacks at Amazon refreshing

I don't think the ```|| dup == 1``` is necessary. If it's not a name collision, it's going to fail again anyway, so there's no point in retrying.