rest_request now specifies the method to be called

 - fix dialyzer bugs
 - improve (barely) performance