SFTP: add support for recursive nlist and rawlist

Fixes #267.
Depends on #338 .