Move common functionality to src/
Integration test documentation doesn't currently work: https://github.com/rust-lang/cargo/issues/13427. In addition, the idiomatic way of documenting common functionality for tests is in src/ ie. https://github.com/rust-lang/cargo/tree/master/crates/resolver-tests