apns: refactoring and documenting
apns: Go() returning type stictly.
apns: fix error handling when dial to APNs server