Simplified logic to get most active applications

This simplifies the logic used to acquire all of the most active
applications grouped by project by using the groupBy function.

Includes renaming of some other functions.
Cleaned up logic used for recent activity chart

This simplifies the logic used to generate the recent activity chart
data.
Various changes to cleanup the code
Added application count to project list view

Added an application count for each project on the project list view.

Enabled sorting of project list by category name.