Stellar dynamics: rotation, convection, and magnetic fields