Set express acesss control header configuration
Clean up implementation of 'verbose' flag

Other minor cleanup
Allow for adding socket 'close' event listeners