remove rest_client requirement
make a gem out of it