[Bug 1068121] API to register push notifications.

Nothing uses this yet, but will later once we have a notification rewrite.

I think we shouldn't land this until after I talk with the front end devs tomorrow morning, but I think it is ready for review now.

r?