Background thread now properly sends emails (downgrading reminder status so they're only sent once), removes old notifications, and remove empty groups. API endpoints that modify the database's state now provide a return value that reflects that change in state (creating, editing, and handling a note all reflect this). Fixes to the permission system as well, notably a bug that allowed users to view an arbitrary note via handleNote