Add internal socket class plus some support functions. Implemented nop
 register session and partially list identity