refactor to support multi chart
API: support events endpoint
API: events endpoint support from & to params
Merge pull request #29 from zerdliu/master

chart & API