Merge pull request #39 from dbeck/master

migrated diag server code to common; only minimal skeleton left in the samples
picking up common changes: log server should send records over PUB and REQ sockets too