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

https://bugzilla.mozilla.org/show_bug.cgi?id=1037637