Make Travis builds work again

Make unit and functional tests pass on Travis by specifying package versions in requirements.txt and test-requirements.txt.