allow custom function for phantom stdout and stderr
Merge pull request #140 from thoop/master

allow custom function for phantom stdout and stderr