remove server code

Original patch by Danny Coates, extracted from PR #9.