Formatting, docstring, HGServerProtocol __init__

Corrected the formatting of the comments;
Changed the docstrings format;
Created constructor for HGServerProtocol;