Added server sync

Added possibility to sync local date with server's date by calculating the difference between the two. Now it does not matter if the users system date is not accurate.