Common library role for upload logs roles

This role contains the libraries and common code used by the
upload-logs roles.