The base connection allows you to trade CTR for speed by adding a resistor between it and the emitter, seldom done in practise as there are much quicker parts readily available these days.
The LTV part will indeed work with AC, but be a little careful as the isolation between the individual LEDs is often not up to mixing mains and low voltage on different inputs to the same opto package, but for 24V in an industrial control situation, these have much to recommend them.
You can use optos for outputs, but they are not particularly robust, so you would need a protection network, and they are polarity sensitive, photomos relays are better if you need the isolation and reasonable speed in a solid state device, or go for the real thing and use a miniature relay.
Do remember to design for worst case CTR, it is not what you would call a well controlled parameter.
Regards, Dan.