Framework to transparently run code on the server via client-side proxies over web sockets