Adds require.resolve with tests.
Adds intermediate script while node-tap is changing dirs to fix __dirname test.
Supports loading scripts from absolute paths on PC.
Merge #553 r=@tcr: Adds require.resolve with tests.

An up-to-date implementation #123.