Relocate Push Notification code

Change the push notification code to onDeviceReady instead of
receivedEvent