Fix minor bugs related to badge_url.
Fix Build#success that trying Build#redis instead of Build.redis.
Fix build status checking.