Moved code to register for pushNotifications to push-notification-client.js