Query matcher

Add capability to route traffic based on query.