complete sync project api

Save changes to local and refresh project list after sync
operation done.