impl messageio and make endpoint module work
#24;make tests work
#24;make identity tests work