Add support for switching the daemon logger.
Catch IOError in apns connection.
Add test case for IOError catch.
Merge pull request #126 from equinux/logger

Add support for switching the daemon logger.