I have the basics of the hinge working.
1. Moved the MotorVelocityStimulus down into animatLabSim.
2. I got the basic motorized joint working for hinge on bullet. One annoying thing is that bullet does not have a derived class related to motorized constraints, so most of the MotorizedJoint functions have to be moved up into the actual Hinge or prismatic joints.