add support for 'mode' which allows us to define differnt behavior depending on the use of the session; only mode 'IDE' separates compute for now
use non-forking modes for notebook.R and mini.js