Improve readability, reorder some vars, swap tabs with whitespace
Fine tune settings based on server RAM
Max connections also based on RAM
Added initial MySQL broker code