Move query parsing process from solr.js into histogram and table modules.
- Inspector in histogram and table modules can show correct Solr query and custom query.
Clean up histogram module and solr.js
Move query parsing process from solr.js to terms module.