Revert "Make use of deviceready function."

This reverts commit 12149110e9a56a4d5564b8ee6be0640422633f80.
Revert "More oops"

This reverts commit 2f7cae128dfceae1995adfaefcdf3249b61bd645.
Revert "OOPS!"

This reverts commit ae7bece434f36399ba93f8213f00de44f838ea6e.
Revert "Disable push notifications for now."

This reverts commit 110ab36dff5d813ff57ec9dfbacef66a16b96f3c.
Revert "More push notification scripts"

This reverts commit 5f4e9cfa46ae6548e2ffbb6c08c29a628b72ef9d.
Revert "Add push notification registration"

This reverts commit 5dc015b0932e7a5cef69d746893b2503ae2b4b96.