Fix bug in challenges api

1. Support the totalPrize field in all type challenges api.
Merge pull request #333 from Ghost141/challenges_api_update

Fix bug in challenges api