Converted driver to a class

This avoids needing to pass (config, fetcher, distro, slave) everywhere.