Refactoring for request part when using referer auth. Make 'query' required and remove the test for 'query'. Add deserializer to manage API that do not rely on JSON