Implement set_run_mode()

Fakes a "waveform" mode by writing a simple sequence to memory. Note
that this will only work if called after load_waveform(), and even then
it is not 'sticky'. If you upload a new waveform, you'll need to set the
run mode again.

--BRJ and CAR