Remove restclient and json dependencies

Now dependency-free.