Properly build the APNS push payload
Merge pull request #28 from vially/master

The APNS push payload is not built properly