Add method to move a resource on remote server.
Helper for renaming/moving remote files. Add tests. Minor refactorings.