integrating resty for calling REST API
added logging, tweaks to ApruveMerchant