fix folder import on linux/chromeos

import now iterates through filelist via completion callbacks
and only updates jstree control on completion of import
check for result before checking for error property