Updated most part of codebase to provide APNS compatibility functions.
TODO: it is still required to write parsers for remote responses on APNS
resource requests