Add parsing for query directives.
Define function for decoding query params into native query collections.