Cyclic and dihedral 1-factorizations of complete multipartite graphs