This was an unfinished attempt at fixing some observed issues with spark-selector, once I got spark-menu-button (which uses it) to work. I think I went into the woods with this in a lot of ways. See some additional comments below.