Add sub-resource auth support.
Change the way how query strings are processed.