fixed date range check
refactored to group and display events by status
javascript test setup and Event test using karma
WIP