This is the start of a JSON API for /badges.

It can be accessed via /badge/<some id>/json.
fix 404 handling
Make the badge json stuff reusable and use it for user_json
Add avatar url for @ralphbean :)
Merge pull request #139 from fedora-infra/badge_json

Badge and User JSON. Thanks, @relrod! :D