remove code unused in headless
get rid of Workspace.attachModelDir

it was unused afaict, even by extensions -- except in
ExtensionManager, so now it's a private method there instead
complete conversion of AbstractWorkspace to Scala