WIP: misc.Macro

* Moving all the code from deploy.py to this Macro actor
  and using it for actual deployments.