Use GNU getopt_long to parse options

Both psdird and psnoded now use more sophisticated options parsing
systems.  In the case of psnoded, options specified on the command line
override those given in configuration files.