HTTPServer and RPC refactored
RPC fixes