Add MjAPILegacy for providing an old-style api for the new power api