There's a web site called Mozilla Open Badges that serves as a clearinghouse for badge issuers and earners. It would be cool if Stack Exchange could support this.
Would this be possible?
A basic introduction to badges (for a badge issuer) can be found here, and a technical introduction is here.
A different possibility is that someone can make a separate site that awards openbadges based on the stackoverflow api - would this be possible?