Improvements to HTTP/S-RPC server (RIPD-489, RIPD-533)

A large rewrite
I'm puzzled why clear is declared as a template?  Hmm, there are other methods like that (but not all, like begin()).  I suspect there's a trick going on here that I haven't learned yet...