8b0b914
split out application setup from CLI toplevel function This is useful for debugging and experimenting.