refactor script-side api into own file
rename exit.lua to aux.lua, will move absPath there eventually
remove less-useful debug prints