Output performance enhancements

Added io.Writer based JSON output methods for performance.
Changed dgrl command to use io.Writer output.