Add new notification options. Rewrite a bunch of the monitoring code. Upgrade sessions table (again).