Add badge API for GitHub readme.