The Effects of Planets and Brown Dwarfs on Stellar Rotation and Mass Loss