moved AFC file upload code to separate function
move creation of PublicStaging directory to the top
allow installing developer apps by passing a .app directory
iOS 7: Read BundleIdentifier from Info.plist and use during install/upgrade