register devices using EventBus
avoid two devices with same token
remember to clean up
merge from master, removed bad test
only send 0 badge in reset push message