Linkages and Hamiltonians at null infinity