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
Merge pull request #14 from jpfielding/add-interface

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