Initial Implementation

Initial implementation which connects to the server.
Add some tests

Add some tests.