SimplePush: Refactor to use a connect callback to simplify API and elliminate race conditions
adding http basic to the unregister()
UnifiedPush: Use metadata object as argument in registerWithPushServer, more error checking and add JSDoc