Add sleepWakeNotifier class for Mac to catch system sleep/wake events.

Currently just prints whether the system is sleeping or waking.