Added support for RenameResource and MoveResource, changed return value
of CreateDirectory - cleaned up all source code