Make casting of generic Visitor safe.

 Through the use of reflection for verifying the cast.
Add diagnostics for port conflicts.

Uses lsof to discover the process that has bound a port if a conflict is detected.