GetReport updates
Updates so JSON Content type doesnt start until data is actually returned
Updates to include debug mode in CGI