[JS] Phonegap push fixes

Fix invalid use of callbacks
Update login calls with set timeouts for issues with using in app
browser
Merge pull request #423 from phvannor/loginfix

[JS] Address issues in web push found with functional tests