ed.py: revise, simplify command line top level ed()
eliminate global aic_line, merge separate ed_cmd() into ed()