Add rudimentary TCP library.
Minor tweezes to mcp library.