Associators, commutators and linearity of a quasigroup