Added b2JointDef reference to Box2DJoint base class

This allowed introducing a Joint.jointType property and using
b2JointDef::collideConnected directly instead of having
mCollideConnected. The latter also made sure that collideConnected
defaults to true for the PulleyJoint, as it does in Box2D.