Add support for resolving with package metadata and improve legacy browserify field support.
Merge pull request #26 from jaredhanson/resolve-with-pkg-metadata

Resolving with package metadata and improve legacy browserify field check.