Working on Debugging Process changes

Moved some processing into a new module with separate functions. Having
trouble getting it working.
Adding a separate debug log to the server, so chat and debug can be
separate.