improve hlsprovider.html
improve p2p algorithm with states and desire/ack/req/offer algorithm (refs #19)