Add support for resolve references via packages.config.

Code review request from @terrajobst and @davkean. 
Yeah, this is a point-in-time hack. :) We're currently consuming an internal prototype - we've already got a workitem tracking where this task doesn't even do this.