Import the relevant bits of ckanclient