On transitive contact and CR algebras