Notification on badge awarding

This PR is based on the #837 one (that's why you can see its code in this PR).