Refs #6076, refactor .travis.yml generation code and allow more than 2 contexts for generation. Added context for generating the .travis.yml file for piwik-tests-plugins repo.