Add simple test suite
Add support for unix socket connections via TPG_SOCK

Also switch catch . getEnv to base-4.6 lookupEnv