Convert filesystem from jQuery to Q promises; FileSystem._scanDirectory returns a promise