Added /v2/claim API endpoint with tests.

This should fix #121, though I'm not sure where to document the endpoint...
split out api badge-awarding tests into a separate suite.
Merge pull request #136 from toolness/issue-121-api-claim

Issue 121 /v2/claim endpoint