Shifted the user function menu creation into gui.uf_objects.build_uf_menus().
This will allow the code to be reused by the spin viewer window.
Authored by: bugman 2012-05-13
Parent: [r16280]
Child: [r16282]