added memory graph in WebUI for the EnableGeneralStatistics configuration parameter and reworked some code in WebUI