Added argparse for cmdline parsing, config parsing for better control/ops, and some general factoring. Next up is adding a real log system, maybe some buffering/better retry logic, and a process supervisor