Added meta class to markdown.extensions.Extension

Change allows for defining extensions in packages instead of in
`mdx_*` modules which in turn allows for easier distribution and
code organisation.