Reruns/cms server side LMS-11016

This PR is an updated version of this old one: https://github.com/edx/edx-platform/pull/4573
As the docstring says, they return only the html fragment.  This is used by tests to verify the HTML content returned by a handler.