Add support for switching the daemon logger.

This pull request adds support for configuring a custom logger. (Because we need to set our own logger in the rapns configuration)