Rewrite cloud-config into a shell script for Ubuntu 12.04 compat

12.04 ships cloud-init 0.6 which doesn't understand many of the modules used,
plus ordering of cloud-config is becoming a real pain as it's module-level and
not per-resource.
Add licence