Added support for yargs

Tried to run this in supervisord and had all kinds of problems because it was trying to source hardcoded locations for config files and such, so I added support for command line options via yargs.