Synchronization mechanism updated and Master-Worker pattern introduced.

The synchronization mechanism has been updated introducing a single
HTTP request to both commit new local records and download new remote
ones. Furthermore client synchronization requests are now managed as a
sequential list of works executed by the proper worker.
minor changes