Fixing the option parsing to actually work

meaning I was only using env vars so far.  Derp.  Also broke out
credentials file parsing and added an example file that I'll likely move
into the "examples" dir.
Maybe a smidge more obvious...