Implement opts.package pass-through to node-resolve.
Test cases for browser replacement with directory paths.
Additional test cases for browser replacement with directory paths.