csync_statedb: remove noisy output
csync: fix the size in strncpy for the remote perms

We must only do strncpy with size one smaller than
the size of the buffer in order to leave at least
one '\0' at the end
engine: When restoring the file, use the mtime and fileid from the server

Important to switch the things around as we are going to write them in the DB