This is the stable version before PThreads.
Finally fixed the bug with holding a connection open.
Some memory locations weren't allocated enough space.
Lots of  "+1"'s added here and there.
Put reading from a connection in a while loop until the connection is
closed.
Minor other bug fixes here with memory leaks.