Fix timezone drift in file times

Try to take into account the server and client time zones when setting the file times.
Stabilize mtime (as much as possible) for new files by updating mtime with the data in the server response at the end of the upload.

This should fix #9