Expanded the build_menu_item() menu method to accept a function to bind to the entry.
The method also creates a unique ID for the entry if none is given.
Authored by: bugman 2011-06-30
Parent: [r13337]
Child: [r13339]