Revert "Check if user disabled push notifications"

This reverts commit 7dfc8843a122db5111705a4a4b080b4509f5e568.
Fix js syntax, add iOS8 support, cleanup code

Delete unnecessary code. Add compile and runtime check for iOS 8.