Add support for resolve references via packages.config.

Code review request from @terrajobst and @davkean. 
Note that these need to be rebased out not deleted as a separate commit or else they'll be stuck in the history and every clone forever.