Added a debug service with the ability to save JSON files to the local machine.