Add alerts, comments, and users functionality

This also simplifies one method in the dashboard code, which was
implement a long time ago, and there is a simpler way now.