MDL-48142 core_badge: add badge awarded event
MDL-48142 core_badge: unit tests for award badge event
MDL-48142 core_badge: fix context bug on issue method