Purge old logs from database
File logging works complete with file header
Rotate log file at 10MB
Update copy on database rotation field as it only affects database logs
We no longer need to remember when we last purged the log file as it is now done by size
Remove unneeded save-logs function
Commenting and cleanup for existing log functions