Add ncid server support

I didn't see any comments on this, so sending a pull request. Full details of what this is intended to provide are in issue #393.