Refactor master.
Refactor Server construction.
Add protocol mismatching detection.
Add test for Server.
Add util port.
Update debug output level design.
Update test for Scanner.
Suppress Server debug output.