Refactored robot related code into core.Robot. Removed JointManager (code now part of Robot).