worker/uniter: make logger predictable
worker/uniter: make logger predictable

The stdout pipe is closed too early by os/exec;
do the work ourselves to prevent this.

R=dfc, niemeyer
CC=
https://codereview.appspot.com/6774050

thomnico/juju,marcoceppi/juju,frankban/juju,marcmolla/juju,AdamIsrael/juju,Altoros/juju-cloudsigma,kat-co/juju,perrito666/juju,mikemccracken/juju,mjs/juju,waigani/juju,voidspace/juju,alesstimec/juju,axw/juju,anastasiamac/juju,bogdanteleaga/juju,fwereade/juju,gabriel-samfira/juju,mhilton/juju,frobware/juju,tych0/juju,dooferlad/juju,mjs/juju,Altoros/juju-vmware,tsakas/juju,axw/juju,mjs/juju,sinzui/juju,Altoros/juju-vmware,makyo/juju,frobware/juju,dooferlad/juju,dimitern/juju,cmars/juju,mattyw/juju,cloud-green/juju,gabriel-samfira/juju,mhilton/juju,bac/juju,thomnico/juju,mjs/juju,macgreagoir/juju,mhilton/juju,Altoros/juju-vmware,fwereade/juju,mikemccracken/juju,reedobrien/juju,frankban/juju,ericsnowcurrently/juju,frobware/juju,marcmolla/juju,frankban/juju,sinzui/juju,bz2/juju,dimitern/juju,Altoros/juju-cloudsigma,ericsnowcurrently/juju,cherylj/juju,anastasiamac/juju,marcmolla/juju,makyo/juju,bz2/juju,kat-co/juju,alesstimec/juju,dimitern/juju,makyo/juju,frankban/juju,tsakas/juju,mattyw/juju,bz2/juju,fwereade/juju,Altoros/juju-cloudsigma,axw/juju,jrwren/juju,tasdomas/juju,sinzui/juju,mattyw/juju,alesstimec/juju,AdamIsrael/juju,voidspace/juju,cloud-green/juju,bac/juju,reedobrien/juju,cmars/juju,mhilton/juju-juju,alesstimec/juju,mhilton/juju-juju,davecheney/juju,tasdomas/juju,dimitern/juju,davecheney/juju,frankban/juju-tmp,mjs/juju,rogpeppe/juju,bogdanteleaga/juju,cmars/juju,voidspace/juju,dimitern/juju,Altoros/juju-cloudsigma,tych0/juju,tasdomas/juju,reedobrien/store,macgreagoir/juju,macgreagoir/juju,tych0/juju,howbazaar/juju,waigani/juju,frankban/juju-tmp,marcoceppi/juju,thomnico/juju,dooferlad/juju,cherylj/juju,wwitzel3/juju,bz2/juju,bogdanteleaga/juju,perrito666/juju,bz2/juju,howbazaar/juju,kat-co/juju,axw/juju,reedobrien/juju,wwitzel3/juju,ericsnowcurrently/juju,cherylj/juju,mhilton/juju-juju,reedobrien/juju,kat-co/juju,rogpeppe/juju,mhilton/juju,voidspace/juju,gabriel-samfira/juju,marcmolla/juju,bac/juju,wwitzel3/juju,waigani/juju,gabriel-samfira/juju,mikemccracken/juju,axw/juju,tsakas/juju,dooferlad/juju,cherylj/juju,thomnico/juju,mattyw/juju,marcoceppi/juju,cloud-green/juju,tych0/juju,bogdanteleaga/juju,dooferlad/juju,anastasiamac/juju,mjs/juju,cloud-green/juju,jrwren/juju,perrito666/juju,bac/juju,anastasiamac/juju,marcmolla/juju,gabriel-samfira/juju,AdamIsrael/juju,reedobrien/juju,fwereade/juju,frankban/juju-tmp,AdamIsrael/juju,waigani/juju,alesstimec/juju,Altoros/juju-vmware,davecheney/juju,tsakas/juju,perrito666/juju,howbazaar/juju,davecheney/juju,makyo/juju,anastasiamac/juju,mjs/juju,kat-co/juju,mikemccracken/juju,ericsnowcurrently/juju,mikemccracken/juju,marcoceppi/juju,mhilton/juju-juju,perrito666/juju,howbazaar/juju,frankban/juju-tmp,bac/juju,tasdomas/juju,cmars/juju,jrwren/juju,frankban/juju,howbazaar/juju,wwitzel3/juju,macgreagoir/juju,sinzui/juju,rogpeppe/juju,ericsnowcurrently/juju,macgreagoir/juju