Added helper to check if the current event is a sleep event.
Added TaskGroup class, as well as helpers to generate a list of TaskGroups from our task history.
Moved all TaskGroup related helpers into application helpers.