Fixed remaining bugs of the iOS purchase manager and added some logging.