Fix for bug where alerts were being resent to clients that remained connected during server shutdown
Added ability to redirect logging to file system and to specify where in the file system to output to. Added ability to specify logging level of detail. All options can be controlled through env vars