Fixed a bug where the code failed when trying to delete the team provision from multiple targets.
Updated the provision helpers to use promises for all async stuff.