A framework for conducting realtime neurophysiology and psychophysics experiments