add config class
initialize headers with config default_headers hash
return the original object and set updated attributes from api result on save