initial port of kibana version 3