Remove dead color constants
Support the condition of a job's first build.   Add cleaner logic for
green or red based on 'red*' or 'yellow*' color.
Add test case to cover the test case of a job's first build