Support for server-side saving of queries