allow passive mode to be activated without being connected already

* for dependency injection
add passive mode handling after login
Merge pull request #1 from wireshark/foo

add passive mode handling after login
Merged with di-improvements branch