Caching perl modules when running on Travis CI

The more dependencies a perl project has the longer the duration of each Travis CI job. Travis supports caching of defined directories to speed up builds.

To improve the build time we can use the local::lib perl module to create a new directory where all dependencies for the project will be installed. Then this directory can be specified in the Travis configuration to be cached.