Add and interface for the Session so we can mock it out.

Added quit channel so things will compile again.

Drop support for version of go before 1.3