Tidied build configuration.
CI build speed improvements.

Improve CI build speed by caching downloaded dependencies:

http://docs.travis-ci.com/user/caching/