Issue #599 : move the logic of adjusting badge number to be inside notification manager, whenever  a new notification dict is stored, adjust the badge number