Substantial encapsulation

Create a color adjustment class to encapsulate the functionality and
create something approximating a proper API.