Add API retry and timeout code to the API module. The default behavior is to not retry unless explicitly set. If set, the retries will wait "retry_delay" seconds before retrying. And the default timeout is set to 2 minutes (as really busy Zabbix DBs can backup for quite some time)