Opening issues on a new window on the app.
Unregister device from push-notifications on logout.
Remove a few comments, beautify code.
Beautify, added some logs.
Changed logout event listener prio.
Changed logout listener prios, maintain a ref of libsb.user for async unregister.
Added phonegap regid ref to a global variable for async.
Implemented device removal on unregister, server side.
Changed notify param from Array to String of regID.
Added logs for events.
Reverted server side push notif changes.
CHeck if device is present.
Fixed some bugs.
Merge pull request #379 from scrollback/unregister-client

Unregister client