Workaround to stabilize push js test for unregister/register

TODO: getDeviceId should NOT call the callback function until the push
client finishes registering.  This results in a race condition where
the old device id is returned and push can be sent too early.
Merge pull request #8 from rhomobile/push-js-stabilize

Workaround to stabilize push js test for unregister/register