Ldp: initial metadata + binary support

Still quite primitive, but it works as well as the rest, and there are tests