Added base server code and a test.