Migrate colors to a class, add PS1-specific escaping.

See #43.