Apply cosmetic changes from jbecla.
Apply review comments from becla and salnikov.

Fix some cleanliness issues. Split off ReplyChannel and
ChannelStream implementations from SsiSesssion. Improve
comments.
Replace generic exceptions with qserv-specific exceptions as suggested.