Improvements to the Logging System

All log entries now get chronologically sorted
Logs in the format log-* now get deleted