Added some tests for badge.addClaimCodes route.
Added a link to export open claim codes as plain text.

Along with previous commits, this fixes #152.