fs: uv_fs_{open,read,close}_dir

Tested on Linux, MacOS X, SmartOS and Windows.

Fixes #1430.