update build

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
fix deploy api call

add deploy tests

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