working juju api

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Merge branch 'patch-apiz' into patch-split-core-logic
update

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