The X-shooter GRB afterglow legacy sample (XS-GRB)