Refactored code generation
Bug fix for Socket Client

Race condition when sending a packet before connecting would hang executor without raising any event
Work in progress on remote actor for server side