Some more debug statements, a thread to show client count, other minor cleanup.