Implemented cleaning of old logs. Switched to ES 1.0.0