Added router functionality, including lookup tables and use of CN_Sockets