Sharer now notifies proxy when disconnected from its local http server.
Also fixed a bug in read_next_packet that wouldn't allow reading the last packet if it's in the readbuffer.