feat(ami): refactor to use cloudinit

related to coreos/init#59