Add sync methods to update local whitelist in server
restructure files, config file, common rutines.