custom_build: build output goes in the directory for the req, not hard coded to Target

This broke crossbuilds that had Host deps that used custom build
scripts, typically resulting in a failure to link (due to bad
relocations or symbols) the final executable or library.

Probably should have rustc check when generating an rlib that all the
containing objects have the appropriate arch.
Merge branch 'fix-custom-build-cross' of https://github.com/jmesmon/cargo into pr-1012
Add a test for PR #1012
auto merge of #1060 : alexcrichton/cargo/pr-1012, r=alexcrichton
Update git2 and cargo snapshots

Should fix #1032 and #1029
auto merge of #1045 : alexcrichton/cargo/update-git2, r=alexcrichton

Should fix #1032 and #1029
Register new snapshots

Should fix the mac bots
auto merge of #1064 : alexcrichton/cargo/snapshots, r=alexcrichton

Should fix the mac bots
Fix cases where a registry is not updated

If a registry already knew about a package, but didn't know about newly
published version of a package, then the registry would occasionally not be
updated when it otherwise needed to be.
auto merge of #1067 : alexcrichton/cargo/fix-registry-update, r=alexcrichton

If a registry already knew about a package, but didn't know about newly
published version of a package, then the registry would occasionally not be
updated when it otherwise needed to be.
Upgrade rust-installer to v2