more utility helpers for dealing with containers

Also first draft of supporting existing maas complete.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>