gcm reg/unreg and mock for browser

This fixes the lack of unregistration/reregistration of users.
It also polyfills the PushPlugin with mock methods for testing in the browser.