Reimplementing Server lifecycle.

Writing Server/Client tests.