Add support for resolve references via packages.config.

Code review request from @terrajobst and @davkean.