Setup the Windows service and added a debug mode.