Clean some of the web networking code