Add new logging system that saves old logs.

Now it logs to the SD card.