adding the simplest factory method possible

Signed-off-by: Mikolaj Szabo <savingprivateblue@gmail.com>
headers can be passed to http client #6

Signed-off-by: Mikolaj Szabo <savingprivateblue@gmail.com>