Implement security in BadgesResource, EventsResource, LeaderboardResource and RulesResource