What is the best way for controlling array of 8-16 relays?

Thank you for your help.

I have a several questions about using TPIC6B595

  1. If relays are powered from external power supply, should the grounds be connected?
  2. Where to put capacitor and why it is needed?
  3. May I use arbitrary pins for data/latch/clock?
  4. What will be the state of output pins on power on/restart?

Thanks again,
Yakov