Modified data_grab endpoint method.

Text is now optional and off by default.
Summary is now optional and on by default.
Use {create,finish}Transaction in the cleanSessions() function.
Added documentation comments to the data endpoint.
Added ability to remove the limit on the length of the summary field.
Set proper content type HTTP header for API responses.
Implemented limit on number of sessions per API key.