change resource interface in abstract bases

    - splited Resource in FileResource and DirectoryResource
    - added some operations (copy(), list())
    - changed dir __iter__ to yield Resources