Expose replaceCodes

For some uses, it's annoying that the colors function adds reset codes at each end of the generated string, so expose replaceCodes. This is done in a backwards-compatible way, and explained in the updated README.