Made logging amount configurable

Added Log file number and max logfile size to settings - General page, updated config handling and logging to take these settings into account.