[WIP] os_nodetype: impl with libuv

step towards #133
NODE_WRITABLE is for cases where the device is not a regular file.

os_nodetype is only used by fileio.c and could conceivably being factored out completely. This PR would be a step towards that.