Support for more EAS global errors sent via WBXML.
phpdoc/cs
Remove duplicative method call
phpdoc
Add support for callbacks during early portions of request handling:

1) versionCallback: Will allow modification of supported version
   based on either devId or user. Must occur this early since version
   is cached by most clients.

2) createDeviceCallback: Allow to disallow adding a device to the
   user's account. Useful for limiting the device that connects,
   or limiting the number of devices etc...

Both still need implementing in driver code, this just adds the hook.
Add (so far unenforced) device limit permission.
This must be ===, the string is cast to boolean in the comparison.
Parse error.
Fix sending mail with attachments when using
Remove unneeded logging.
Return proper status for the wbxml status reply.
Add missing status return.