Improvements and some refactors.

Hooked up to `$stdout` and `$stderr` to capture all output.

Added UI menu to attach and detach tunnel.

Refactored some code to contain everything into one module.