Issue #42

- Fixed report generation; added a groupby to end of query
- Removed link from email sent out during applications - it would try to
access a private page that has no corresponding public one