You need extra output pins, so use a shift register to give you 8 outputs, this will give you enough to control your 4 DC motors. You will need a transistor to drive the 24V or a H-bridge if you want to control the direction as well.

For the servos I would use the servo library and direct output from the pins.