Auto merge of #6934 - ehuss:stabilize-offline, r=alexcrichton
Stabilize offline mode.
This stabilizes the `--offline` flag as detailed at https://github.com/rust-lang/cargo/issues/5655#issuecomment-488347426. It also adds the `net.offline` config value.
Closes #5655
Closes #4686