Added depth parameter to TemplatesStore for querying /templates (OMS-274)