Add Support for a Mac OS X App

Hi,

This PR enable the support for a Mac OS X App.
Since the code to send Push Notifications to a Mac is exactly the same as an iOS device, I mainly did some refactoring.

I will be happy to proceed some changes if you want me too.

Thanks for your bundle!