Refactored AppDomain unloading logging

Because currently the logs were not always written due to the
asynchronous way of logging by NLog (the AppDomain got unloaded before
the writes were done)
This also cleans up the HttpModule class for a subsequent PR, because
now the extraction of the shutdown message is refactored into its own
class.