Travis CI update

Cache vendor directory between tests.

Use travis_retry on composer self-update command.