[FEATURE] Add fs.readdir API support.

Refactor fs API module.