Added async agg and purge sensor data functions. Updated alerts and triggers controllers.