Push notifications overhaul, fixes #63