Add coverage calculation for tests. Simplify state_to_code. rename the base constant

This makes a change from `State` to `UsStates` to reflect the name of the file, the gem, and to prevent name collisions with other libraries.

I did add `State = UsStates` however so that it is backwards compatible.