Added some home-directory checking routines.
Now we print time correctly here.
Added basic logging into TransportSocket.