Pass 'extensions' key down to node-resolve call

Squashed commits from #12