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

A large rewrite
I kind'a like this business of declaring the data members at the top.  I'll have to remember that.