Added date grouping option and MIT license

Added dateGroups option to the function call, this will group all
events from the same day in the output html.

Added MIT license.