added basic message factory. continued implementing chat protocol