Fixed a minor bug when using provisioning api. Added provisioning api example script. Updated gemspec.