Extensive modifications to parse.py. It now has functions definitions for the major actions and uses the pythonic idiom for if name is main and so on. It also catches more exceptions and provides error context before continuing or exiting. It has command line option parsing with defaults for the server config as we're using it.