migrate flashproxy-client to argparse and use common options etc