Partnering lets small firms pursue work they could not win alone. Here is how prime-subcontractor teams generally work and what a good teaming agreement covers.