Bug 1037637 - [DSDS][Dialer] Refactor sim_picker DOM building code.

https://bugzilla.mozilla.org/show_bug.cgi?id=1037637
Please add a reference to bug 1040922. Also, it would be better to write out "MutationObserver".