Added pgrun.go and pgrun_test.go
Password handling and logging changes