deduplicate tool creation code in Tools

Follow-up to https://github.com/kogmbh/WebODF/pull/614#discussion_r13059577

This whole code has the problem of not being reliable in the order that the tools are placed on the toolbar. And then there is a switch from Dojo toolit to Closure widgets pending in the next weeks. So not doing more simplifications.