Generate documentation of line & cell magics
Various improvements to docs infrastructure for magics