move server libs to common. add start of chat example