Function urlFromQueries

Takes an ApiConfig object and array of Query objects and returns a Query API request URL.