Added support for multi-process debugging

Added code that determines whether the master process was instantiated with --debug, and if so, passes the flag down to the forked processes and gives each fork a unique debug port.