Add support for editing Math

Styling still needs to be added for the math `textarea` and the delete button (now invisible because of a missing png).

This technically works but is still a bit hacky since we now have 2 popovers on the page (the Bootstrap one used in editing and a custom one) so I'm not sure what other interactions this may cause.