Use ' instead of "
First wrapping to object
Avoid global variables
jshint fixes
Refatorize read config

Use method as callback in readConfigFile
Use method ad callback in onUdpPacketReceived
Use method as callback in onTcpConnectionActive
Use method as callback in onTcpPacketReceived
Use method as callback in onFlushInterval
Remove logger as global variable
Reformatting with space and without laxcomma
Export Statsd and run it only if call directly
Remove unused variable and use function to cleanup
Remove function name