Selectmenu

New PR for selectmenu, since #492 got too long.

See also http://wiki.jqueryui.com/w/page/12138056/Selectmenu