Replace directories/links with files (fixes #580)
Populate ignores upon adding a folder (fixes #996)
Merge pull request #997 from syncthing/lig

Minor fixes