Updating to match Apple's latest changes.
Updated to work with new batteryStatus and batteryLevel fields.
Updated sendMessage() to use Apple's new userText JSON key
Fix PHP Errors on invalid account / JSON trouble
Merge pull request #32 from iPublications/master

Fix nasty PHP error on line 42 && 119 on invalid credentials
Merge remote-tracking branch 'upstream/master'