HPCC-8783 Refactor and split ccdserver.cpp

Split ccdserver into several logical parts. The part with all the
server-side activity code is still a little large.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>