stats logging in server, statsLogger.js as an independent file. First version ready to launch in heroku