HttpEPServer: Manage the whole send buffer process in the main loop context

Change-Id: I0cf9cf960ce646e4eb59d2e648cefe2d24cffd03