Adds preliminary integration test suite
Refactors, adds SSL tunnels
Fixes tunnels integration test
Adds more client integration tests