Extended terms panel with terms stats.

This pull request is related to issue #348. Terms panel is extended with opportunity to create statistics via terms stats facet. It is possible to choose mode - terms or terms_stats in terms panel.