Added SPDY support, and some other minor cleanup