Rename pkgid to crate_id

Closes #11035
Add some things to inspect crate-id's
auto merge of #11041 : cmr/rust/pkgid_changes, r=cmr,metajack