Fixes BLD-948 by escaping messages from xqueue, preventing malformed
html from getting onto the page. The client will then unescape the html
and display it.
Merge pull request #3025 from edx/dcs/fix-matlab-response

Fixes BLD-948 by escaping messages from xqueue, preventing malformed