express: Factor out common server shutdown logic
express: Factor out common server shutdown logic

Also log when the HTTP server is about to be closed and when it is
done closing.

ether/etherpad-lite,storytouch/etherpad-lite,ether/etherpad-lite,storytouch/etherpad-lite,storytouch/etherpad-lite,ether/etherpad-lite