Revised API for getChallenges. Returns sent and received challenges.