Support multiple parameters with the same name in requests and responses

Changes query string from a hash to a list. Changes the JSON data structure for passing in parameters.