Controlling 40 solenoids, 2 pumps, 2 servos, and a few sensors

In the past I've tinkered with the 74HC259 latching multiplex chips. These could be used to control on/off things like solenoids and motors. You would probably need a transistor for each solenoid as the latching chips couldn't directly supply the 100ma solenoid requirement.