Integral support for histogram panel

Rebasing https://github.com/elasticsearch/kibana/pull/1015 on top of current master.