API get doc as text/html/markdown

We now support exporting page content as HTML and Markdown, in addition to other page-related functionality!