Renamed handle_socket() to handle_client()

Also improved some log information and performed some general minor clean
up.