Support for updated provisioner API and bug fixes.

Depends on #8