Add select_menu package, native implementation.
Move functionality from main into init to allow importing as library.