added object serialization encoder and decoder to netty server.