Add caching of docker image, to avoid duplicate builds where layers already exist. Only run tests when modifications to 'terrareg' directory are present