apns: implement token
apns: implements APNs message formatting
apns: fix message size overflow