Return created child process object in order to hook to its events from outside

Also fixed some jshint issues and beatified child process stdout/stderr printing.