Add stats logging
Read server config from a json file