Removed unneeded extra locking, added RequeueCause to the requeue event.
Fixed build config
Added logging facade, additional log messages in APNS.