Added agent onLine event, and dummy elastricsearch onLine event handler.