bugfix, if we have both methods we should raise an error
request factory can do the json conversion
initial tests for pyfarm.agent.http.core.resource