Framework for proxying network connections in many ways