Introduce http_fetch for images build

In order to avoid breaking during temporary failures
upstream when we fetch components via http this patch
use http_fetch function.

http_fetch is a little wrapper around curl in order to:
- make our curl usage consistent
- use by default curl retry machanism

Change-Id: I2cfb060319af82aaff7d60bb3c9c800477fe927e