args: Convert parsed options in to dict for easier assignment

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
rst: Move restored pidfile writing into pid htype

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>