[WIP] os_nodetype: impl with libuv

step towards #133
Will move most of these explanatory/historical notes to the commit message when this becomes RFC.