Multivariate quantiles and multiple-output regression quantiles: from L1 optimization to halfspace depth