used optimist and colors packages
added test cases for post requests; found phantomjs cannot open pac file