Use rust-installer for installation

This is just a refactoring of the current installer so that Rust and Cargo
use the same codebase.

cc #16456
Merge pull request #19753 from brson/rust-installer

Use rust-installer for installation

Reviewed-by: alexcrichton