REST based server for chat applications