Adds WorkbenchPart interface. Fixes #660

Contains methods common for view and editor