[api] added repo_history_changes api

Also include commit_id in events api
Merge pull request #230 from haiwen/lins-events

[api] added repo_history_changes api