Refactors guzzle version 3 tests.
Adds guzzle version 4 tests and fixes.
Adapts travis configuration to run guzzle 3 and 4 tests.