Refactored the duplicate code that builds the Host menu.
Added validation to disallow duplicate host & tool names.