[CB-2235] Fixed file transfer whitelisting.

The user agent sometimes being set to nil in iOS6 eventually led to the whitelist regex checks being skipped.  Setting the user agent from the command delegate fixes this.
Don't send callbacks when there are no listeners.
[CB-2290] iOS: 'CDVJSON.h' file not found when adding a plugin