Major refactoring

1.  Replaced deprecated optparse with argparse.
2.  Added options -r, -f, -l to specify row count, fields to be
returned and list available fields.
3.  Moved the querying into a function so it can be called with
different options depending upon whether the "-l" flag is used.
4.  Wrapped the actual process_search in a block to ignore the warning
that is returned because ssl verify is disabled.