Some changes for powerline daemon

Moved `--config` and `--theme_option` arguments processing to a separate function, cherry-picked `deepcopy` from `powerline-reload` branch and partially fixed cwd segment in tmux.