Pretty-printing the XML messages on the server, some other minor tweaks.