[lit] Add an --output option, for writing results in a machine readable form.