Fixed infinite recursions due to perfect forwarding
Better encapsulation of curl sockets