standalone iplist creator
make write cleaner
Make several changes.

Some important changes:

* Uses optparse to parse argumnets
* Prevent file handle leaks
Merge pull request #6 from wchen-r7/pr3002-v2

Multiple improvements for tool makeiplist.rb
add -i option as a requirement
Land #3002 - standalone iplist creator