Grouping data into CodeSessions for each author

Added code session for each user. Moved findDistinctUser to the ActivityRepository.