As I said, your on your own. Putting a 60 W light bulb in series with the fan when your playing with it may help with keeping in the magic smoke.
On the inut side you know white is N, Black is Line and Green is ground.
White is probably connected to white on the output side too.
One of the wires goes to the lamps and controlled by the dimmer in the module. Might not be connected to a relay.
One of the wires likely goes to a capacitor whose values are put in parallel to control the speeds.
Then two wires go to a winding to control the direction. L & N polarities get reversed to this winding.
I can't tell you what wires to use. With an ohmmeter and examining the circuit, you should be able to tell what goes where.
Lights are easy.
There will be two windings, one with a slightly different resistance value. The aux (winding with cap) has the greater resistance. See http://www.ece.wisc.edu/~lipo/2000pub/00-04.PDF