Many changes in Apns Api, adding a worker thread an other things.