added rest api sync feature. failed rest api calls will re-attempt every x (configured) amount of seconds.