ported rest-client from platform
implemented binarta rest client