CMS-2567 Create FacetResult

Added termsfacet and queryfacet to result. Also, deprecated a lot of old stuff that eventually will be removed.