Unify RPC and HTTP server, and add JSONp

Note that the web client will probably not work right now