Move argument array helpers to new argv module
Move format_argv to argv module
Rename view_env to argv_env and format_argv to argv_format
Macrotize argument env variables

This uses macros to define `struct argv_env` members as well as
argv_format variables and will simplify things for the readline
support.

References #185