New method to get url query params as dictionary.