add events to community version; add events api
[api2] Update avatar api
Merge branch 'events'