What is an effective way to organize collaborations with several people on the same paper?  How do you arrange the $\LaTeX$ document, the shared (digital) papers library, and other aspects?

More in general, remarks on how to set up an effective collaborations are very welcome too.