Internationalization with SCIM

I have SCIM and UTF-8 working smoothly with pretty much every program other than emacs. Here is a narrative of the process I went through; you can skip to the end to see immediately all of what is needed.