Bug 845173 - [MMS][Utility] Convert HTML element to mms SMIL and vise versa.

Builds on top of @steveck-chung and my work in #8512  - Answers most of the review comments there.