Refined code for extracting Application and Team Identifiers from new provisioning profile
Reworked sanity checking of Application and Team Identifiers
 - added warning messages of potential iOS 8 problems if new provisioning profile does not contain a team Identifier
 - script now aborts if it detects that it is being asked to re-sign an application with embedded frameworks that does not have a team Identifier, as the re-signed app would crash on launch on devices
Improved progress output messages
Renamed some variables for clarity