Unify code style conventions in parts of the code.
Some more code style adjustments.
Mode code style adjustments.
More refactoring (move Result out of Connection).