Add query parameter field to transform

We need to know the query parameters to use to request the data before
it is transformed as these vary on uniformly or a per case basis.
We don't really have one at the moment. The ResourceView work has gone part of the journey to standardising our view code and we should work uniform error reporting into this.