Update Makefile to build HTML version.
Address issues for pings, closing, stream management, and discovery