Mains input is easy - just use two out of RST, and it doesn't matter which one is live and which is neutral.
Can't help off-hand with the spindle switching as I don't use it at the moment. One day I'll get round to proper spindle speed and on/off control, but I'm not there yet! For the time being, I just use the front panel controls.