[fix bug 1002420] Optimize longest streak calculation.

* Include only the users with a report in the last 24 hours, in the calculation.
[fix bug 974344] Don't display ical banner when subscribing to past events.
Merge pull request #727 from akatsoulas/1002420

[fix bug 1002420] Optimize longest streak task.
[Fix bug 967026][Fix bug 970395] Fix inactivity notification emails.
Merge pull request #728 from johngian/fix-notifications

[Fix bug 967026][Fix bug 970395] Fix inactivity notification emails.
Revert "[Fix bug 967026][Fix bug 970395] Fix inactivity notification emails."

This reverts commit 204df74e4b06b36cc9761964fbe2204a7d186b1d.
Exclude users with incomplete profiles from queries.