Probably a combo of all three that caused an induced harmonic vibration ... probably emanating in your mast (the mast was pumping and since its connected to the forestay it too was vibrating).
All 'solids' in nature have whats called a 'natural frequency' at which they become easily induced to vibrate under the right external conditions ... such as a violin string, adjacent strings on most stringed instruments, cable stayed large antennas, aircraft wings, etc. etc. etc.
Changing rigging tension, changing the angle that wind strikes the sails / mast / rigging, hanging a weight in the mast/rigging, etc. etc. etc. all can help lessen (or increase) the vibrations.
The most common reason for such 'pumping' or vibrating (a natural frequency response) is a mast that isnt set up correctly by special tensions of the rigging. A properly set up and properly tensioned rigging will provide a wee bit of forward 'bow' to the mast which 'stiffens' the mast and is called MAST PREBEND. Go to:
http://www.riggingandsails.com/pdf/selden-tuning.pdf look for your type of mast (and in accordance with the exact number of 'spreader sets'), and simply set the correct
'pre-bend' in the mast by properly setting up the rig tension. Note: there is a section in that URL that show how to correctly adjust rig tension without a tension gage - just a 'meter stick'.
Sometimes, the leech of a sail will begin to flutter, and if the speed of fluttering is a harmonic to the natural frequency of the mast or rigging, the vibration will 'harmonize' with and 'excite' the mast, etc. .... If you see such leech flutter, simply tension your leech line or apply more or less jibsheet tension until the leech flutter ceases.
The 'usual' cause of rig vibrations is the mast was not properly set up and doesnt have the proper 'pre-bend' or 'pre-bow' .... typically 3/4" forward 'bowing' on a single spreader rig, or 1/2" prebow for each spreader set on a mast with multiple spreaders.
Your sailmaker when s/he designed your mainsail also
expected your mast to have that amount of pre-bend, and if you dont have that prebend the sail will set with a LOT more 'draft' than was designed -- boat now heels over more, is slower than normal, and can become quite 'cranky' especially in heavier winds when the mast develops a 'reverse bend' or a bowing that 'going aft', etc. etc.
hope this helps.
Let us know how this info works for you.
;-)