Added retries on failed communication against cloud in worker
Started to think how to do the bridge part on api server