Changed directory resolving

All operations are now excecuted by an IDirectoryResolver wich can be
changed.