Reduce overhead of HTTP/RPC replies

This refactor eliminates the need for the expensive `strprintf` calls to format HTTP replies, especially when very large objects are being returned. 
Additionally, it identifies a couple of instances where we return inconsistent values for the "Server: " header - this may not be a big deal, but we should be consistent, and a potential (micro-)optimization in the construction of HTTP header timestamps.