Fixes CVE-2014-6271. Still vulnerable to CVE-2014-7169.
Refactored to work with cluster/* scripts which require actions to be defined as methods in cluster/azure/util.sh