Extract sampler into a pkg

This extracts the libcurl sampler into a pkg of its own.