added max_files setting to file output class to enable log file retirement when using log file rotation enabled by max_size setting

changed and added unit tests for file output class to check the max_size and max_files settings and their functionality