network: added allocatePort method to UdpManager, done some work towards making it easier to register a UDP endpoint after creation.
posix: in connect(), allocate a local port for UDP connections, unless a bind() has already taken place.