Do you think you could add web dav capabilities for your web server? That would solve sync, folder creation and all that high level stuff as many OS can mount webDav servers (or at least have dedicated clients for them)? No idea about the difficulty.