Added optparser for cmd line args

Started to add OptParser for more flexible parsing of command line
options.  Added new global vars to capture options.
Merge branch 'ADD-TEST-CODE'
Merge branch 'master' of https://github.com/droffo/ruby-tools