improve pagination with Link and X-Total-Count headers