Added composer file with lithium dep, and gitignore
Added inital unit test case
Rewrite connection logic for testability

Changes to use a new fire-and-forget Socket adapter