change js logic to push max event limit to server
parse maxEvent parameter in server code
interface and server side impl for maxEvents
Merge pull request #132 from amatsukawa/limit_max_events

Limit max events. Thanks Aki!