libcore: Add `is_absolute()` to paths. Closes #5851.
auto merge of #5971 : pcwalton/rust/is-absolute, r=pcwalton

r? @jdm last commit