Simple generic REST API client