Added YAML config + command-line features

Need to set up some actual system logging, but it's two in the morning
right now and I need sleep.