refactor front-server

offload rendering task to generator
fserver dispatches requests to different generators