You'll need to wire the capacitor in parallel with the relay prior to it going to the ballast.
Ex.
A good site that has more info - try here (hopefully the images are still there and not broken)
http://www.fordfusionclub.com/index.php?topic=120616.0
Also note that you might have to play around with the capacitance to get it right. Basically you need the capacitor to bridge the ripple voltage that your electrical system generates. 4700uF cap is pretty big, so it "should" work. You'll have to run the numbers to determine what the load current is, so that you can size the capacitor correctly. You don't want it to create too much voltage variations as that could run into the threshold on most voltage regulators, like the ones in most ballasts. Lots of info out there - just search for ripple voltage and ripple factor.
Also, should add, that you'll need to waterproof / protect that cap. They do make "flicker" fixers that are basically encapsulated capacitors in a little pigtail harness. Not too expensive, something like $30 a set or so, saves you from any wiring headaches if you are unsure of tackling any wiring.
The process is not much different than wiring capacitors for high powered audio applications - if that helps out any.