Make sure we trim documents sent to server if they are large
Merge pull request #44 from mnmtanish/trim-event-docs

Make sure we trim documents sent to server if they are large