Correct ensemble deallocation

ensemble is allocated with 'new', and must be deallocated with
'delete', not 'free()'
Correct error handling in StatsServer
StatsServer coding style
Correct dabInputZMQ messageReceived flag handling
Add check on ptr in dabInputUdp