[new]  onRestResult with returnCode

New method "sendRequestWithReturn" allows sending different request from
the same activity and react differently depending on the request source.