initial implementation of REST client with basic testing