HttpEPServer: Do EOS management in main loop context

Change-Id: I7e04ddf84e75605e5e59a0791c4ceece8739e005