Commonize util functions for main()
Commonize util functions for main()

RJPercival/certificate-transparency-go,daviddrysdale/certificate-transparency-go,google/certificate-transparency-go,google/certificate-transparency-go,google/certificate-transparency-go,RJPercival/certificate-transparency-go,daviddrysdale/certificate-transparency-go,RJPercival/certificate-transparency-go,daviddrysdale/certificate-transparency-go