Add URL path and query as named attributes to REST handler