My understanding is that the colour schemes for Marine specialities (apothecaries white, librarians blue, etc.) pre-dates the Horus Heresy.
Not exactly - some Legions used some of the future markings, but not completely. For example - some Apothecaries only had a white shoulder pad or arm, matching the original RT
The colour schemes as they are now were established in the Codex Astartes.