There are two books which I would recommend for dealing with this voice-leading. It is best to approach the subject in order of the texts.
The first is a book which describes the actual methods and instruction of composers of the era, from a historical and theoretical point of view. There is much in the book for instructing oneself to write in the style. It is called "The Art of Partimento" by Sanguinetti, a contemporary theorist.
The second book, which can treat larger fugal forms, is called "The Study of Fugue" by Mann. It is a theoretical study and a classic book on counterpoint. It contains less practical instruction, and more classification, as compared with the first book.
Regarding your questions, I will try to answer.
Composers of the era utilized the partimento method of composing / notation. These partimentos were the equivalent of shorthand lead-sheets of today's musicians. They contained bass, melody, and a rough outline of the harmony, using numbers instead of assigning registers to the notes. The musicians of the time were well versed in the ways to ornament the music presented in the partimenti, and were able to improvise within the harmonies.
The voice leading can be looked at from the viewpoint of species counterpoint. Without explaining the different species, I'll give a brief overview of one way to build a 16 voice counterpoint.
- Start with a partimento
- For the harmonies outlined, designate some voices to sing long notes (whole, double whole, or half notes)
- At this point, there should be at least 4 voices: bass, melody, and two harmonies.
- Moving on, find opportunities for another two voices of quicker rhythm, to move between the harmonies without violating the basic rules. There are many tools to help with this: ornamentation (embellishments), stopping and starting at different places, increasing or decreasing the rhythm values.
- Now, there should be at least 6 voices
- If there is more rhythmic space available, continue with the above method up to 8 voices
Using the suggestions above can help to add detail to a counterpoint. There are other techniques detailed in "The Study of Fugue" which can quickly and accurately create counterpoint lines, when constructed within the constraints. These techniques are shown in the text as "Inversion at the Octave/10th/12th". These are shorthand methods for generating notes that follow the rules of counterpoint.
- In the style of music of Caldara, as given in the example, the licenses may be limited to voice crossing and leaps, as well as stopping and starting lines when convenient. Ensemble register changes are also helpful.