Structural and mechanistic investigations of the key esterification step in Mupirocin and Thiomarinol biosynthesis.