Corrections as a result of writing an integration test.

Also made btcd_test.go use table-driven tests and use constants like ifoc_test.
Also added a function to color.go for easily getting the color value at any outpoint.