fixes bug 965589 - replace vendored libs with a requirements file

There might be a bit more work to do here in cleaning up stuff we don't need. So I'm not asking for a review yet.

Tests pass locally. Just want to see them in action on jenkins.