Add ipc-open-target config option.
Rename ipc param to process_args to via_ipc.

This prevents shadowing of the module.
Fix IPC when there's no main window available.
Whitespace fixes.
Add docstrings to signal debugging.
Refactor Command._inspect_function.