Added permessage-deflate + lots of general debug and cleanup