rewrite add command to use dagwriter

moved a pinner into the dagwriter for inline pinning
if really only works with a ManualPinner, could make this a param of the function. If this is liable to change later, then keep the `pin.Pinner` type.