md_lib.ml: adding Img_ref
md_backend.ml: moving debug features from md_parser.ml to md_backend.ml
md_parser.ml: moving some debug features to md_backend.ml