Refactor file handler to use io.Pipe() WIP
Add debug logging (TEMP)