starting to convery IDP to a module

 - menus resolved
 - toolbars resolved
 - most functionality does not work yet!