Changes flash layout for badge notifications, creates new pathways for badges, moves most of badge logic into merit helper