add subscribe packet codec & util tools & prepare for prototype server/client