fixed bug in video start message
added stim type "custom"; misc bug fixes

custom is a stim type that calls custom_function (which you create) in
the working directory
added template custom function
More consistent variable scope; certain functions no longer nested

all constant information about the session is now stored in the global
‘session’ struct. functions should be hesitant to call this on each
loop of a function, since global vars can apparently be slow