Use RestClient to resolve many issues. Add specs