Change setParameters() to only use payload as body if RequestData is given

Refactoring request mechanism, part 2