Added debug and exit commands from stdin
Added timeout handling for javascript and lua repls