Moves the new-message UI to the existing core_message_renderer so it can...

... be overriden by a theme/plugin; Also creates moodle_form::toHtml() to return markup for forms rather than outputting directly


I know this isn't the appropriate place for this, but your tracker is down – can resubmit when it's up.