Control the relay using an arduino
A simple google search has yielded a schematic for the relay section:
https://drive.google.com/file/d/0B43XXiSt0MIdem9TcjBDNUNhcnM/edit


Credit for the schematic goes to Adrian Jones

To answer your question, yes, the ribbon cable can be used, but you will have take a couple of things into consideration:


NOT ISOLATED FROM MAINS 
Assuming that you have not electrocuted yourself, you will have to change the value of the 4k7 resistors and zener diode, to match the voltage you require and the current consumption 
Remove the battery ifyou don't want it to blow up if you are using a higher voltage than 1.2V of that cell
make sure that the diode bridge is rated for the current you require.


Again be aware, it can be 1.2V at the output, but you are NOT isolated from mains