Updated Server code and changed design a bit

Oh God! I again changed the design. Now I have planned to put a
ResponseGenerator module which will be responsible to process
the input the request and generating appropriate response.
Server will be sending the input request to ResponseGenerator
which in turn will return the processed response.

Signed-off-by: Siddharth Goel <siddharth98391@gmail.com>